pub struct ExtendedAttribute { /* private fields */ }Expand description
Entry extended attribute.
Implementations§
Source§impl ExtendedAttribute
impl ExtendedAttribute
Sourcepub const fn new(name: String, value: Vec<u8>) -> Self
pub const fn new(name: String, value: Vec<u8>) -> Self
Create new ExtendedAttribute.
§Example
use libpna::ExtendedAttribute;
let xattr = ExtendedAttribute::new("name".into(), b"value".into());Trait Implementations§
Source§impl Clone for ExtendedAttribute
impl Clone for ExtendedAttribute
Source§fn clone(&self) -> ExtendedAttribute
fn clone(&self) -> ExtendedAttribute
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 ExtendedAttribute
impl Debug for ExtendedAttribute
Source§impl Hash for ExtendedAttribute
impl Hash for ExtendedAttribute
Source§impl Ord for ExtendedAttribute
impl Ord for ExtendedAttribute
Source§fn cmp(&self, other: &ExtendedAttribute) -> Ordering
fn cmp(&self, other: &ExtendedAttribute) -> 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 for ExtendedAttribute
impl PartialEq for ExtendedAttribute
Source§impl PartialOrd for ExtendedAttribute
impl PartialOrd for ExtendedAttribute
impl Eq for ExtendedAttribute
impl StructuralPartialEq for ExtendedAttribute
Auto Trait Implementations§
impl Freeze for ExtendedAttribute
impl RefUnwindSafe for ExtendedAttribute
impl Send for ExtendedAttribute
impl Sync for ExtendedAttribute
impl Unpin for ExtendedAttribute
impl UnwindSafe for ExtendedAttribute
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