Struct mapped_file::Anonymous
source · [−]pub struct Anonymous;
Expand description
Used for anonymous mappings with MappedFile
.
Safety
The AsRawFd
impl of this structure always returns -1
. It should only be used with MappedFile
, as this is an invlalid file descriptor in all other contexts.
Trait Implementations
sourceimpl Ord for Anonymous
impl Ord for Anonymous
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Anonymous> for Anonymous
impl PartialOrd<Anonymous> for Anonymous
sourcefn partial_cmp(&self, other: &Anonymous) -> Option<Ordering>
fn partial_cmp(&self, other: &Anonymous) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 Anonymous
impl Eq for Anonymous
impl StructuralEq for Anonymous
impl StructuralPartialEq for Anonymous
Auto Trait Implementations
impl RefUnwindSafe for Anonymous
impl Send for Anonymous
impl Sync for Anonymous
impl Unpin for Anonymous
impl UnwindSafe for Anonymous
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more