Enum mccs::UnknownData
source · pub enum UnknownData {
String(String),
StringBytes(Vec<u8>),
Binary(Vec<u8>),
}
Expand description
Data that can be contained in a capability entry.
Variants§
String(String)
UTF-8/ASCII data
StringBytes(Vec<u8>)
Data that is not valid UTF-8
Binary(Vec<u8>)
Length-prefixed binary data
Trait Implementations§
source§impl Clone for UnknownData
impl Clone for UnknownData
source§fn clone(&self) -> UnknownData
fn clone(&self) -> UnknownData
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 UnknownData
impl Debug for UnknownData
source§impl Hash for UnknownData
impl Hash for UnknownData
source§impl Ord for UnknownData
impl Ord for UnknownData
source§fn cmp(&self, other: &UnknownData) -> Ordering
fn cmp(&self, other: &UnknownData) -> 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<UnknownData> for UnknownData
impl PartialEq<UnknownData> for UnknownData
source§fn eq(&self, other: &UnknownData) -> bool
fn eq(&self, other: &UnknownData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UnknownData> for UnknownData
impl PartialOrd<UnknownData> for UnknownData
source§fn partial_cmp(&self, other: &UnknownData) -> Option<Ordering>
fn partial_cmp(&self, other: &UnknownData) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 more