pub enum FragmentInfo {
Line {
start: usize,
end: usize,
announcement: Option<LiteralAnnouncement>,
ending: LineEnding,
},
Literal {
start: usize,
end: usize,
},
}Expand description
Describes a fragment of the current message found by Fragmentizer::progress.
The corresponding bytes can be retrieved via Fragmentizer::fragment_bytes
until Fragmentizer::is_message_complete returns true. After that the
next call of Fragmentizer::progress will start the next message.
Variants§
Line
The fragment is a line.
Fields
§
announcement: Option<LiteralAnnouncement>Whether the next fragment will be a literal.
§
ending: LineEndingThe detected ending sequence for this line.
Literal
The fragment is a literal.
Implementations§
Trait Implementations§
Source§impl Clone for FragmentInfo
impl Clone for FragmentInfo
Source§fn clone(&self) -> FragmentInfo
fn clone(&self) -> FragmentInfo
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 FragmentInfo
Source§impl Debug for FragmentInfo
impl Debug for FragmentInfo
impl Eq for FragmentInfo
Source§impl PartialEq for FragmentInfo
impl PartialEq for FragmentInfo
Source§fn eq(&self, other: &FragmentInfo) -> bool
fn eq(&self, other: &FragmentInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FragmentInfo
Auto Trait Implementations§
impl Freeze for FragmentInfo
impl RefUnwindSafe for FragmentInfo
impl Send for FragmentInfo
impl Sync for FragmentInfo
impl Unpin for FragmentInfo
impl UnsafeUnpin for FragmentInfo
impl UnwindSafe for FragmentInfo
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