pub struct MemswapLimit { /* private fields */ }Expand description
A service-level Compose memswap_limit value with its authored scalar retained.
Implementations§
Source§impl MemswapLimit
impl MemswapLimit
Sourcepub const fn raw(&self) -> &Located<String>
pub const fn raw(&self) -> &Located<String>
Returns the complete scalar value and its source span without normalization.
Sourcepub const fn scalar_kind(&self) -> MemswapLimitScalarKind
pub const fn scalar_kind(&self) -> MemswapLimitScalarKind
Returns whether the authored YAML scalar was a number or string.
Sourcepub const fn kind(&self) -> &MemswapLimitKind
pub const fn kind(&self) -> &MemswapLimitKind
Returns the raw-preserving memory-plus-swap classification.
Trait Implementations§
Source§impl Clone for MemswapLimit
impl Clone for MemswapLimit
Source§fn clone(&self) -> MemswapLimit
fn clone(&self) -> MemswapLimit
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 MemswapLimit
impl Debug for MemswapLimit
impl Eq for MemswapLimit
Source§impl PartialEq for MemswapLimit
impl PartialEq for MemswapLimit
impl StructuralPartialEq for MemswapLimit
Auto Trait Implementations§
impl Freeze for MemswapLimit
impl RefUnwindSafe for MemswapLimit
impl Send for MemswapLimit
impl Sync for MemswapLimit
impl Unpin for MemswapLimit
impl UnsafeUnpin for MemswapLimit
impl UnwindSafe for MemswapLimit
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