pub enum ControlWord<'a> {
Show 41 variants
Rtf,
Ansi,
Unicode,
UnicodeIgnoreCount,
FontTable,
FontCharset,
FontNumber,
FontSize,
ColorNumber,
ColorTable,
FileTable,
StyleSheet,
Italic,
Bold,
Underline,
UnderlineNone,
Superscript,
Subscript,
Smallcaps,
Strikethrough,
Par,
Pard,
Sectd,
Plain,
ParStyle,
ParDefTab,
FirstLineIdent,
LeftIndent,
RightIndent,
LeftAligned,
RightAligned,
Center,
Justify,
SpaceBefore,
SpaceAfter,
SpaceBetweenLine,
SpaceLineMul,
ColorRed,
ColorGreen,
ColorBlue,
Unknown(&'a str),
}
Variants§
Rtf
Ansi
Unicode
UnicodeIgnoreCount
FontTable
FontCharset
FontNumber
FontSize
ColorNumber
ColorTable
FileTable
StyleSheet
Italic
Bold
Underline
UnderlineNone
Superscript
Subscript
Smallcaps
Strikethrough
Par
Pard
Sectd
Plain
ParStyle
ParDefTab
FirstLineIdent
LeftIndent
RightIndent
LeftAligned
RightAligned
Center
Justify
SpaceBefore
SpaceAfter
SpaceBetweenLine
SpaceLineMul
ColorRed
ColorGreen
ColorBlue
Unknown(&'a str)
Implementations§
Source§impl<'a> ControlWord<'a>
impl<'a> ControlWord<'a>
pub fn from(input: &str) -> Result<ControlSymbol<'_>, LexerError>
Trait Implementations§
Source§impl<'a> Clone for ControlWord<'a>
impl<'a> Clone for ControlWord<'a>
Source§fn clone(&self) -> ControlWord<'a>
fn clone(&self) -> ControlWord<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ControlWord<'a>
impl<'a> Debug for ControlWord<'a>
Source§impl From<&ControlWord<'_>> for Alignment
impl From<&ControlWord<'_>> for Alignment
Source§fn from(cw: &ControlWord<'_>) -> Self
fn from(cw: &ControlWord<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ControlWord<'a>
impl<'a> PartialEq for ControlWord<'a>
impl<'a> Copy for ControlWord<'a>
impl<'a> Eq for ControlWord<'a>
impl<'a> StructuralPartialEq for ControlWord<'a>
Auto Trait Implementations§
impl<'a> Freeze for ControlWord<'a>
impl<'a> RefUnwindSafe for ControlWord<'a>
impl<'a> Send for ControlWord<'a>
impl<'a> Sync for ControlWord<'a>
impl<'a> Unpin for ControlWord<'a>
impl<'a> UnwindSafe for ControlWord<'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