Struct dynlink::compartment::CompartmentId
source · #[repr(transparent)]pub struct CompartmentId(/* private fields */);
Expand description
ID type for a compartment.
Implementations§
Trait Implementations§
source§impl Clone for CompartmentId
impl Clone for CompartmentId
source§fn clone(&self) -> CompartmentId
fn clone(&self) -> CompartmentId
Returns a copy of the value. Read more
1.0.0 · 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 CompartmentId
impl Debug for CompartmentId
source§impl Display for CompartmentId
impl Display for CompartmentId
source§impl Hash for CompartmentId
impl Hash for CompartmentId
source§impl Ord for CompartmentId
impl Ord for CompartmentId
source§fn cmp(&self, other: &CompartmentId) -> Ordering
fn cmp(&self, other: &CompartmentId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CompartmentId> for CompartmentId
impl PartialEq<CompartmentId> for CompartmentId
source§fn eq(&self, other: &CompartmentId) -> bool
fn eq(&self, other: &CompartmentId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CompartmentId> for CompartmentId
impl PartialOrd<CompartmentId> for CompartmentId
source§fn partial_cmp(&self, other: &CompartmentId) -> Option<Ordering>
fn partial_cmp(&self, other: &CompartmentId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CompartmentId
impl Eq for CompartmentId
impl StructuralEq for CompartmentId
impl StructuralPartialEq for CompartmentId
Auto Trait Implementations§
impl Crossing for CompartmentId
impl ObjSafe for CompartmentId
impl RefUnwindSafe for CompartmentId
impl Send for CompartmentId
impl Sync for CompartmentId
impl Unpin for CompartmentId
impl UnwindSafe for CompartmentId
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.