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