pub enum SourceData {
U8(u8),
U16(u16),
EOF,
}Expand description
A “character” from iterating a SourceSlice.
Variants§
U8(u8)
A byte (as in SourceSlice::U8).
U16(u16)
A two-byte unit (as in SourceSlice::U16).
EOF
The end of file.
Implementations§
Trait Implementations§
Source§impl Clone for SourceData
impl Clone for SourceData
Source§fn clone(&self) -> SourceData
fn clone(&self) -> SourceData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceData
Source§impl Debug for SourceData
impl Debug for SourceData
impl Eq for SourceData
Source§impl PartialEq for SourceData
impl PartialEq for SourceData
Source§fn eq(&self, other: &SourceData) -> bool
fn eq(&self, other: &SourceData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceData
Auto Trait Implementations§
impl Freeze for SourceData
impl RefUnwindSafe for SourceData
impl Send for SourceData
impl Sync for SourceData
impl Unpin for SourceData
impl UnsafeUnpin for SourceData
impl UnwindSafe for SourceData
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