#[non_exhaustive]pub enum IncludeItem {
Short(Located<String>),
Long(IncludeLong),
Unmodeled,
}Expand description
One authored include declaration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Short(Located<String>)
A short scalar path.
Long(IncludeLong)
A long include mapping.
Unmodeled
An invalid form retained in the syntax document and reported diagnostically.
Trait Implementations§
Source§impl Clone for IncludeItem
impl Clone for IncludeItem
Source§fn clone(&self) -> IncludeItem
fn clone(&self) -> IncludeItem
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 IncludeItem
impl Debug for IncludeItem
impl Eq for IncludeItem
Source§impl PartialEq for IncludeItem
impl PartialEq for IncludeItem
impl StructuralPartialEq for IncludeItem
Auto Trait Implementations§
impl Freeze for IncludeItem
impl RefUnwindSafe for IncludeItem
impl Send for IncludeItem
impl Sync for IncludeItem
impl Unpin for IncludeItem
impl UnsafeUnpin for IncludeItem
impl UnwindSafe for IncludeItem
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