pub enum FieldLocation {
Message,
Attached(usize),
}Expand description
Which of an entry’s texts a range indexes.
An entry has two coordinate systems: LogEntry::message
is header-stripped, while each attached line is the full physical line,
session-UUID prefix included.
Variants§
Message
The entry’s primary message.
Attached(usize)
The i-th attached line, indexed as AttachedLines::get takes it.
Trait Implementations§
Source§impl Clone for FieldLocation
impl Clone for FieldLocation
Source§fn clone(&self) -> FieldLocation
fn clone(&self) -> FieldLocation
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 FieldLocation
Source§impl Debug for FieldLocation
impl Debug for FieldLocation
Source§impl Display for FieldLocation
impl Display for FieldLocation
impl Eq for FieldLocation
Source§impl Hash for FieldLocation
impl Hash for FieldLocation
Source§impl Ord for FieldLocation
impl Ord for FieldLocation
Source§fn cmp(&self, other: &FieldLocation) -> Ordering
fn cmp(&self, other: &FieldLocation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FieldLocation
impl PartialEq for FieldLocation
Source§impl PartialOrd for FieldLocation
impl PartialOrd for FieldLocation
impl StructuralPartialEq for FieldLocation
Auto Trait Implementations§
impl Freeze for FieldLocation
impl RefUnwindSafe for FieldLocation
impl Send for FieldLocation
impl Sync for FieldLocation
impl Unpin for FieldLocation
impl UnsafeUnpin for FieldLocation
impl UnwindSafe for FieldLocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.