pub struct MapEntry {
pub inside_start: u32,
pub outside_start: u32,
pub count: u32,
}Expand description
a single range in a uid/gid mapping
Fields§
§inside_start: u32start of range inside namespace (logical value)
outside_start: u32start of range outside namespace (on-disk value)
count: u32number of ids in this range
Implementations§
Source§impl MapEntry
impl MapEntry
pub fn new(inside_start: u32, outside_start: u32, count: u32) -> Self
Sourcepub fn identity_single(id: u32) -> Self
pub fn identity_single(id: u32) -> Self
identity mapping for a single id
Sourcepub fn contains_inside(&self, id: u32) -> bool
pub fn contains_inside(&self, id: u32) -> bool
check if an inside id falls within this range
Sourcepub fn contains_outside(&self, id: u32) -> bool
pub fn contains_outside(&self, id: u32) -> bool
check if an outside id falls within this range
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapEntry
impl<'de> Deserialize<'de> for MapEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MapEntry
impl StructuralPartialEq for MapEntry
Auto Trait Implementations§
impl Freeze for MapEntry
impl RefUnwindSafe for MapEntry
impl Send for MapEntry
impl Sync for MapEntry
impl Unpin for MapEntry
impl UnsafeUnpin for MapEntry
impl UnwindSafe for MapEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.