pub struct SegmentId(/* private fields */);Expand description
Defines the SegmentId of a SharedMemory
Implementations§
Source§impl SegmentId
impl SegmentId
Sourcepub const fn new(value: SegmentIdUnderlyingType) -> Self
pub const fn new(value: SegmentIdUnderlyingType) -> Self
Creates a new SegmentId from a given value.
Sourcepub const fn value(&self) -> SegmentIdUnderlyingType
pub const fn value(&self) -> SegmentIdUnderlyingType
Returns the underlying value of the SegmentId
Sourcepub const fn max_segment_id() -> SegmentIdUnderlyingType
pub const fn max_segment_id() -> SegmentIdUnderlyingType
Returns the maximum value the SegmentId supports.
Trait Implementations§
impl Copy for SegmentId
impl Eq for SegmentId
impl StructuralPartialEq for SegmentId
Auto Trait Implementations§
impl Freeze for SegmentId
impl RefUnwindSafe for SegmentId
impl Send for SegmentId
impl Sync for SegmentId
impl Unpin for SegmentId
impl UnsafeUnpin for SegmentId
impl UnwindSafe for SegmentId
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