pub struct AttributeKey(/* private fields */);Expand description
Validated name of one inode attribute.
A key is 1 to 128 UTF-8 bytes and carries no Unicode control character, which is also what rejects NUL. Keys are compared exactly: nothing case-folds or normalizes them, so two spellings that differ in any byte name two different attributes.
The loonfs. prefix is reserved for system-owned attributes. This
type accepts a reserved key, because a durable row has to be able to
carry a system attribute. The write operation is where a caller’s
attempt to write a reserved key is rejected.
Implementations§
Source§impl AttributeKey
impl AttributeKey
Source§impl AttributeKey
impl AttributeKey
Sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Reports whether this key names a system-owned attribute.
Trait Implementations§
Source§impl AsRef<str> for AttributeKey
impl AsRef<str> for AttributeKey
Source§impl Borrow<str> for AttributeKey
impl Borrow<str> for AttributeKey
Source§impl Clone for AttributeKey
impl Clone for AttributeKey
Source§fn clone(&self) -> AttributeKey
fn clone(&self) -> AttributeKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeKey
impl Debug for AttributeKey
Source§impl<'de> Deserialize<'de> for AttributeKey
impl<'de> Deserialize<'de> for AttributeKey
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
Source§impl Display for AttributeKey
impl Display for AttributeKey
impl Eq for AttributeKey
Source§impl FromStr for AttributeKey
impl FromStr for AttributeKey
Source§impl Hash for AttributeKey
impl Hash for AttributeKey
Source§impl Ord for AttributeKey
impl Ord for AttributeKey
Source§fn cmp(&self, other: &AttributeKey) -> Ordering
fn cmp(&self, other: &AttributeKey) -> Ordering
1.21.0 (const: unstable) · 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 for AttributeKey
impl PartialEq for AttributeKey
Source§impl PartialOrd for AttributeKey
impl PartialOrd for AttributeKey
Source§impl Serialize for AttributeKey
impl Serialize for AttributeKey
impl StructuralPartialEq for AttributeKey
Source§impl TryFrom<&str> for AttributeKey
impl TryFrom<&str> for AttributeKey
Auto Trait Implementations§
impl Freeze for AttributeKey
impl RefUnwindSafe for AttributeKey
impl Send for AttributeKey
impl Sync for AttributeKey
impl Unpin for AttributeKey
impl UnsafeUnpin for AttributeKey
impl UnwindSafe for AttributeKey
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