pub struct LongDevice { /* private fields */ }Expand description
One mapping-form service device declaration.
Implementations§
Source§impl LongDevice
impl LongDevice
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete mapping span.
Sourcepub const fn source(&self) -> Option<&Located<String>>
pub const fn source(&self) -> Option<&Located<String>>
Returns the required source when it was valid and present.
Sourcepub const fn target(&self) -> Option<&Located<String>>
pub const fn target(&self) -> Option<&Located<String>>
Returns the optional target without host/container path interpretation.
Sourcepub const fn permissions(&self) -> Option<&Located<String>>
pub const fn permissions(&self) -> Option<&Located<String>>
Returns the optional raw permissions string without validating its letters or meaning.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- options in authored order.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized mapping options in authored order.
Trait Implementations§
Source§impl Clone for LongDevice
impl Clone for LongDevice
Source§fn clone(&self) -> LongDevice
fn clone(&self) -> LongDevice
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 LongDevice
impl Debug for LongDevice
impl Eq for LongDevice
Source§impl PartialEq for LongDevice
impl PartialEq for LongDevice
impl StructuralPartialEq for LongDevice
Auto Trait Implementations§
impl Freeze for LongDevice
impl RefUnwindSafe for LongDevice
impl Send for LongDevice
impl Sync for LongDevice
impl Unpin for LongDevice
impl UnsafeUnpin for LongDevice
impl UnwindSafe for LongDevice
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