pub enum SyntaxConfigFile<'a> {
FlowChart(ObjectConfig<'a>),
}Expand description
An enum representation of the available syntax’s.
Variants§
FlowChart(ObjectConfig<'a>)
Implementations§
Source§impl<'a> SyntaxConfigFile<'a>
impl<'a> SyntaxConfigFile<'a>
Sourcepub fn as_flow_chart_mut(&mut self) -> Option<&mut ObjectConfig<'a>>
pub fn as_flow_chart_mut(&mut self) -> Option<&mut ObjectConfig<'a>>
Optionally returns mutable references to the inner fields if this is a SyntaxConfigFile::FlowChart, otherwise None
Sourcepub fn as_flow_chart(&self) -> Option<&ObjectConfig<'a>>
pub fn as_flow_chart(&self) -> Option<&ObjectConfig<'a>>
Optionally returns references to the inner fields if this is a SyntaxConfigFile::FlowChart, otherwise None
Sourcepub fn into_flow_chart(self) -> Result<ObjectConfig<'a>, Self>
pub fn into_flow_chart(self) -> Result<ObjectConfig<'a>, Self>
Returns the inner fields if this is a SyntaxConfigFile::FlowChart, otherwise returns back the enum in the Err case of the result
Trait Implementations§
Source§impl<'a> Debug for SyntaxConfigFile<'a>
impl<'a> Debug for SyntaxConfigFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for SyntaxConfigFile<'a>
impl<'a> RefUnwindSafe for SyntaxConfigFile<'a>
impl<'a> Send for SyntaxConfigFile<'a>
impl<'a> Sync for SyntaxConfigFile<'a>
impl<'a> Unpin for SyntaxConfigFile<'a>
impl<'a> UnwindSafe for SyntaxConfigFile<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more