#[repr(i32)]pub enum XAttrNamespaceProto {
User = 0,
Trusted = 1,
Security = 2,
System = 3,
Raw = 4,
}
Variants§
Implementations§
Source§impl XAttrNamespaceProto
impl XAttrNamespaceProto
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for XAttrNamespaceProto
impl Clone for XAttrNamespaceProto
Source§fn clone(&self) -> XAttrNamespaceProto
fn clone(&self) -> XAttrNamespaceProto
Returns a duplicate 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 XAttrNamespaceProto
impl Debug for XAttrNamespaceProto
Source§impl Default for XAttrNamespaceProto
impl Default for XAttrNamespaceProto
Source§fn default() -> XAttrNamespaceProto
fn default() -> XAttrNamespaceProto
Returns the “default value” for a type. Read more
Source§impl From<XAttrNamespaceProto> for i32
impl From<XAttrNamespaceProto> for i32
Source§fn from(value: XAttrNamespaceProto) -> i32
fn from(value: XAttrNamespaceProto) -> i32
Converts to this type from the input type.
Source§impl Hash for XAttrNamespaceProto
impl Hash for XAttrNamespaceProto
Source§impl Ord for XAttrNamespaceProto
impl Ord for XAttrNamespaceProto
Source§fn cmp(&self, other: &XAttrNamespaceProto) -> Ordering
fn cmp(&self, other: &XAttrNamespaceProto) -> 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 XAttrNamespaceProto
impl PartialEq for XAttrNamespaceProto
Source§impl PartialOrd for XAttrNamespaceProto
impl PartialOrd for XAttrNamespaceProto
impl Copy for XAttrNamespaceProto
impl Eq for XAttrNamespaceProto
impl StructuralPartialEq for XAttrNamespaceProto
Auto Trait Implementations§
impl Freeze for XAttrNamespaceProto
impl RefUnwindSafe for XAttrNamespaceProto
impl Send for XAttrNamespaceProto
impl Sync for XAttrNamespaceProto
impl Unpin for XAttrNamespaceProto
impl UnwindSafe for XAttrNamespaceProto
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