#[non_exhaustive]pub struct SourceListEntry {
pub raw: String,
pub expression: Option<SourceExpression>,
}Expand description
A single whitespace-separated token from a SourceList::Sources
list, together with its recognized SourceExpression (if any).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.raw: StringThe original token text, unmodified.
expression: Option<SourceExpression>The recognized source-expression, or None if raw doesn’t
match any of the five alternatives.
Trait Implementations§
Source§impl Clone for SourceListEntry
impl Clone for SourceListEntry
Source§fn clone(&self) -> SourceListEntry
fn clone(&self) -> SourceListEntry
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 moreSource§impl Debug for SourceListEntry
impl Debug for SourceListEntry
impl Eq for SourceListEntry
Source§impl PartialEq for SourceListEntry
impl PartialEq for SourceListEntry
impl StructuralPartialEq for SourceListEntry
Auto Trait Implementations§
impl Freeze for SourceListEntry
impl RefUnwindSafe for SourceListEntry
impl Send for SourceListEntry
impl Sync for SourceListEntry
impl Unpin for SourceListEntry
impl UnsafeUnpin for SourceListEntry
impl UnwindSafe for SourceListEntry
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