#[repr(i32)]pub enum ExternEnumeration {
Unknown = 0,
}Expand description
A test of an externally defined enumeration
Variants§
Unknown = 0
Implementations§
Trait Implementations§
Source§impl Clone for ExternEnumeration
impl Clone for ExternEnumeration
Source§fn clone(&self) -> ExternEnumeration
fn clone(&self) -> ExternEnumeration
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 ExternEnumeration
impl Debug for ExternEnumeration
Source§impl Default for ExternEnumeration
impl Default for ExternEnumeration
Source§fn default() -> ExternEnumeration
fn default() -> ExternEnumeration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternEnumeration
impl<'de> Deserialize<'de> for ExternEnumeration
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 From<ExternEnumeration> for i32
impl From<ExternEnumeration> for i32
Source§fn from(value: ExternEnumeration) -> i32
fn from(value: ExternEnumeration) -> i32
Converts to this type from the input type.
Source§impl Hash for ExternEnumeration
impl Hash for ExternEnumeration
Source§impl Ord for ExternEnumeration
impl Ord for ExternEnumeration
Source§fn cmp(&self, other: &ExternEnumeration) -> Ordering
fn cmp(&self, other: &ExternEnumeration) -> 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 ExternEnumeration
impl PartialEq for ExternEnumeration
Source§impl PartialOrd for ExternEnumeration
impl PartialOrd for ExternEnumeration
Source§impl Serialize for ExternEnumeration
impl Serialize for ExternEnumeration
Source§impl TryFrom<i32> for ExternEnumeration
impl TryFrom<i32> for ExternEnumeration
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ExternEnumeration, UnknownEnumValue>
fn try_from(value: i32) -> Result<ExternEnumeration, UnknownEnumValue>
Performs the conversion.
impl Copy for ExternEnumeration
impl Eq for ExternEnumeration
impl StructuralPartialEq for ExternEnumeration
Auto Trait Implementations§
impl Freeze for ExternEnumeration
impl RefUnwindSafe for ExternEnumeration
impl Send for ExternEnumeration
impl Sync for ExternEnumeration
impl Unpin for ExternEnumeration
impl UnwindSafe for ExternEnumeration
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