pub struct BlkioWeightDevice { /* private fields */ }Expand description
One ordered block-I/O device weight item.
Implementations§
Source§impl BlkioWeightDevice
impl BlkioWeightDevice
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete item span.
Sourcepub const fn form(&self) -> BlkioWeightDeviceForm
pub const fn form(&self) -> BlkioWeightDeviceForm
Returns whether this entry was a mapping or retained unmodeled sequence item.
Sourcepub const fn path(&self) -> Option<&Located<String>>
pub const fn path(&self) -> Option<&Located<String>>
Returns the raw device path when its YAML-string form was valid.
Sourcepub const fn weight(&self) -> Option<&Located<BlkioScalar>>
pub const fn weight(&self) -> Option<&Located<BlkioScalar>>
Returns the raw integer-or-string weight when its scalar form was valid.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained extensions on this entry.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns retained unknown or malformed members on this entry.
Trait Implementations§
Source§impl Clone for BlkioWeightDevice
impl Clone for BlkioWeightDevice
Source§fn clone(&self) -> BlkioWeightDevice
fn clone(&self) -> BlkioWeightDevice
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 BlkioWeightDevice
impl Debug for BlkioWeightDevice
impl Eq for BlkioWeightDevice
Source§impl PartialEq for BlkioWeightDevice
impl PartialEq for BlkioWeightDevice
impl StructuralPartialEq for BlkioWeightDevice
Auto Trait Implementations§
impl Freeze for BlkioWeightDevice
impl RefUnwindSafe for BlkioWeightDevice
impl Send for BlkioWeightDevice
impl Sync for BlkioWeightDevice
impl Unpin for BlkioWeightDevice
impl UnsafeUnpin for BlkioWeightDevice
impl UnwindSafe for BlkioWeightDevice
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