Enum rtf_parser::tokens::ControlWord  
source · pub enum ControlWord<'a> {
Show 40 variants
    Rtf,
    Ansi,
    Unicode,
    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
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>
source§fn eq(&self, other: &ControlWord<'a>) -> bool
 
fn eq(&self, other: &ControlWord<'a>) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.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