pub struct MemLimit { /* private fields */ }Expand description
A service-level Compose mem_limit value with its authored scalar retained.
Implementations§
Source§impl MemLimit
impl MemLimit
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) -> MemLimitScalarKind
pub const fn scalar_kind(&self) -> MemLimitScalarKind
Returns whether the authored YAML scalar was a number or string.
Sourcepub const fn kind(&self) -> &MemLimitKind
pub const fn kind(&self) -> &MemLimitKind
Returns the non-destructive service memory-limit classification.
Trait Implementations§
impl Eq for MemLimit
impl StructuralPartialEq for MemLimit
Auto Trait Implementations§
impl Freeze for MemLimit
impl RefUnwindSafe for MemLimit
impl Send for MemLimit
impl Sync for MemLimit
impl Unpin for MemLimit
impl UnsafeUnpin for MemLimit
impl UnwindSafe for MemLimit
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