MjIncludeHeadChild

Enum MjIncludeHeadChild 

Source
pub enum MjIncludeHeadChild {
    Comment(Comment),
    MjAttributes(MjAttributes),
    MjBreakpoint(MjBreakpoint),
    MjFont(MjFont),
    MjPreview(MjPreview),
    MjRaw(MjRaw),
    MjStyle(MjStyle),
    MjTitle(MjTitle),
    Text(Text),
}

Variants§

§

Comment(Comment)

§

MjAttributes(MjAttributes)

§

MjBreakpoint(MjBreakpoint)

§

MjFont(MjFont)

§

MjPreview(MjPreview)

§

MjRaw(MjRaw)

§

MjStyle(MjStyle)

§

MjTitle(MjTitle)

§

Text(Text)

Implementations§

Source§

impl MjIncludeHeadChild

Source

pub fn is_comment(&self) -> bool

Returns true if this is a MjIncludeHeadChild::Comment, otherwise false

Source

pub fn as_comment_mut(&mut self) -> Option<&mut Comment>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::Comment, otherwise None

Source

pub fn as_comment(&self) -> Option<&Comment>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::Comment, otherwise None

Source

pub fn into_comment(self) -> Result<Comment, Self>

Returns the inner fields if this is a MjIncludeHeadChild::Comment, otherwise returns back the enum in the Err case of the result

Source

pub fn is_mj_attributes(&self) -> bool

Returns true if this is a MjIncludeHeadChild::MjAttributes, otherwise false

Source

pub fn as_mj_attributes_mut(&mut self) -> Option<&mut MjAttributes>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::MjAttributes, otherwise None

Source

pub fn as_mj_attributes(&self) -> Option<&MjAttributes>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::MjAttributes, otherwise None

Source

pub fn into_mj_attributes(self) -> Result<MjAttributes, Self>

Returns the inner fields if this is a MjIncludeHeadChild::MjAttributes, otherwise returns back the enum in the Err case of the result

Source

pub fn is_mj_breakpoint(&self) -> bool

Returns true if this is a MjIncludeHeadChild::MjBreakpoint, otherwise false

Source

pub fn as_mj_breakpoint_mut(&mut self) -> Option<&mut MjBreakpoint>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::MjBreakpoint, otherwise None

Source

pub fn as_mj_breakpoint(&self) -> Option<&MjBreakpoint>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::MjBreakpoint, otherwise None

Source

pub fn into_mj_breakpoint(self) -> Result<MjBreakpoint, Self>

Returns the inner fields if this is a MjIncludeHeadChild::MjBreakpoint, otherwise returns back the enum in the Err case of the result

Source

pub fn is_mj_font(&self) -> bool

Returns true if this is a MjIncludeHeadChild::MjFont, otherwise false

Source

pub fn as_mj_font_mut(&mut self) -> Option<&mut MjFont>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::MjFont, otherwise None

Source

pub fn as_mj_font(&self) -> Option<&MjFont>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::MjFont, otherwise None

Source

pub fn into_mj_font(self) -> Result<MjFont, Self>

Returns the inner fields if this is a MjIncludeHeadChild::MjFont, otherwise returns back the enum in the Err case of the result

Source

pub fn is_mj_preview(&self) -> bool

Returns true if this is a MjIncludeHeadChild::MjPreview, otherwise false

Source

pub fn as_mj_preview_mut(&mut self) -> Option<&mut MjPreview>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::MjPreview, otherwise None

Source

pub fn as_mj_preview(&self) -> Option<&MjPreview>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::MjPreview, otherwise None

Source

pub fn into_mj_preview(self) -> Result<MjPreview, Self>

Returns the inner fields if this is a MjIncludeHeadChild::MjPreview, otherwise returns back the enum in the Err case of the result

Source

pub fn is_mj_raw(&self) -> bool

Returns true if this is a MjIncludeHeadChild::MjRaw, otherwise false

Source

pub fn as_mj_raw_mut(&mut self) -> Option<&mut MjRaw>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::MjRaw, otherwise None

Source

pub fn as_mj_raw(&self) -> Option<&MjRaw>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::MjRaw, otherwise None

Source

pub fn into_mj_raw(self) -> Result<MjRaw, Self>

Returns the inner fields if this is a MjIncludeHeadChild::MjRaw, otherwise returns back the enum in the Err case of the result

Source

pub fn is_mj_style(&self) -> bool

Returns true if this is a MjIncludeHeadChild::MjStyle, otherwise false

Source

pub fn as_mj_style_mut(&mut self) -> Option<&mut MjStyle>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::MjStyle, otherwise None

Source

pub fn as_mj_style(&self) -> Option<&MjStyle>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::MjStyle, otherwise None

Source

pub fn into_mj_style(self) -> Result<MjStyle, Self>

Returns the inner fields if this is a MjIncludeHeadChild::MjStyle, otherwise returns back the enum in the Err case of the result

Source

pub fn is_mj_title(&self) -> bool

Returns true if this is a MjIncludeHeadChild::MjTitle, otherwise false

Source

pub fn as_mj_title_mut(&mut self) -> Option<&mut MjTitle>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::MjTitle, otherwise None

Source

pub fn as_mj_title(&self) -> Option<&MjTitle>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::MjTitle, otherwise None

Source

pub fn into_mj_title(self) -> Result<MjTitle, Self>

Returns the inner fields if this is a MjIncludeHeadChild::MjTitle, otherwise returns back the enum in the Err case of the result

Source

pub fn is_text(&self) -> bool

Returns true if this is a MjIncludeHeadChild::Text, otherwise false

Source

pub fn as_text_mut(&mut self) -> Option<&mut Text>

Optionally returns mutable references to the inner fields if this is a MjIncludeHeadChild::Text, otherwise None

Source

pub fn as_text(&self) -> Option<&Text>

Optionally returns references to the inner fields if this is a MjIncludeHeadChild::Text, otherwise None

Source

pub fn into_text(self) -> Result<Text, Self>

Returns the inner fields if this is a MjIncludeHeadChild::Text, otherwise returns back the enum in the Err case of the result

Trait Implementations§

Source§

impl Clone for MjIncludeHeadChild

Source§

fn clone(&self) -> MjIncludeHeadChild

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MjIncludeHeadChild

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MjIncludeHeadChild

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for MjIncludeHeadChild

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,