Struct somedoc::model::block::MathBlock [−][src]
A math block wraps an inline Math
so that it forms a stand-alone block within the document.
Implementations
impl MathBlock
[src]
pub fn with_caption(math: Math, caption: Caption) -> Self
[src]
Create a new instance from the inline Math
instance and a Caption
.
pub fn with_caption_str(math: Math, caption: &str) -> Self
[src]
Create a new instance from the inline Math
instance and a caption string.
pub fn inner(&self) -> &Math
[src]
Return a reference to the inner Math
instance.
Trait Implementations
impl Clone for MathBlock
[src]
impl Debug for MathBlock
[src]
impl<'de> Deserialize<'de> for MathBlock
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<Math> for MathBlock
[src]
impl HasCaption for MathBlock
[src]
fn caption(&self) -> &Option<Caption>
[src]
fn set_caption(&mut self, caption: Caption) -> &mut Self
[src]
fn unset_caption(&mut self) -> &mut Self
[src]
fn has_caption(&self) -> bool
[src]
impl HasLabel for MathBlock
[src]
fn has_label(&self) -> bool
[src]
fn label(&self) -> &Option<Label>
[src]
fn set_label(&mut self, label: Label) -> &mut Self
[src]
fn unset_label(&mut self) -> &mut Self
[src]
impl Into<BlockContent> for MathBlock
[src]
fn into(self) -> BlockContent
[src]
impl Serialize for MathBlock
[src]
Auto Trait Implementations
impl RefUnwindSafe for MathBlock
[src]
impl Send for MathBlock
[src]
impl Sync for MathBlock
[src]
impl Unpin for MathBlock
[src]
impl UnwindSafe for MathBlock
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,