Enum whitespacesv::WSVToken
source · pub enum WSVToken<'wsv> {
LF,
Null,
Value(Cow<'wsv, str>),
Comment(&'wsv str),
}
Expand description
A collection of all token types in a WSV file.
Variants§
LF
Represents a line feed character (ex. ‘\n’)
Null
Represents a null value in the input (ex. ‘-’)
Value(Cow<'wsv, str>)
Represents a non-null value in the input (ex. ‘value’)
Comment(&'wsv str)
Represents a comment (ex. ‘# comment’)
Trait Implementations§
Auto Trait Implementations§
impl<'wsv> Freeze for WSVToken<'wsv>
impl<'wsv> RefUnwindSafe for WSVToken<'wsv>
impl<'wsv> Send for WSVToken<'wsv>
impl<'wsv> Sync for WSVToken<'wsv>
impl<'wsv> Unpin for WSVToken<'wsv>
impl<'wsv> UnwindSafe for WSVToken<'wsv>
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