#[non_exhaustive]pub enum PortabilityPart {
Declaration(PortabilityDeclaration),
Blank,
Comment,
Invalid,
Ignored,
Continuation,
}Expand description
One part of a physical line under one dialect.
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.
Declaration(PortabilityDeclaration)
A recognized declaration.
Blank
A blank line.
Comment
A whole-line comment.
Invalid
Malformed syntax retained as invalid.
Ignored
Syntax ignored by the selected dialect.
Continuation
A continuation line of a multiline item that began earlier.
Trait Implementations§
Source§impl Clone for PortabilityPart
impl Clone for PortabilityPart
Source§impl Debug for PortabilityPart
impl Debug for PortabilityPart
impl Eq for PortabilityPart
Source§impl PartialEq for PortabilityPart
impl PartialEq for PortabilityPart
impl StructuralPartialEq for PortabilityPart
Auto Trait Implementations§
impl Freeze for PortabilityPart
impl RefUnwindSafe for PortabilityPart
impl Send for PortabilityPart
impl Sync for PortabilityPart
impl Unpin for PortabilityPart
impl UnsafeUnpin for PortabilityPart
impl UnwindSafe for PortabilityPart
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