#[repr(i32)]pub enum EQueryCvarValueStatus {
ValueIntact = 0,
CvarNotFound = 1,
NotACvar = 2,
CvarProtected = 3,
}Variants§
Implementations§
Source§impl EQueryCvarValueStatus
impl EQueryCvarValueStatus
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of EQueryCvarValueStatus.
Sourcepub fn from_i32(value: i32) -> Option<EQueryCvarValueStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<EQueryCvarValueStatus>
Use the TryFrom<i32> implementation instead
Converts an i32 to a EQueryCvarValueStatus, or None if value is not a valid variant.
Trait Implementations§
Source§impl Clone for EQueryCvarValueStatus
impl Clone for EQueryCvarValueStatus
Source§fn clone(&self) -> EQueryCvarValueStatus
fn clone(&self) -> EQueryCvarValueStatus
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 EQueryCvarValueStatus
impl Debug for EQueryCvarValueStatus
Source§impl Default for EQueryCvarValueStatus
impl Default for EQueryCvarValueStatus
Source§fn default() -> EQueryCvarValueStatus
fn default() -> EQueryCvarValueStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EQueryCvarValueStatus
impl<'de> Deserialize<'de> for EQueryCvarValueStatus
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<EQueryCvarValueStatus> for i32
impl From<EQueryCvarValueStatus> for i32
Source§fn from(value: EQueryCvarValueStatus) -> i32
fn from(value: EQueryCvarValueStatus) -> i32
Converts to this type from the input type.
Source§impl Hash for EQueryCvarValueStatus
impl Hash for EQueryCvarValueStatus
Source§impl Ord for EQueryCvarValueStatus
impl Ord for EQueryCvarValueStatus
Source§fn cmp(&self, other: &EQueryCvarValueStatus) -> Ordering
fn cmp(&self, other: &EQueryCvarValueStatus) -> 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 EQueryCvarValueStatus
impl PartialEq for EQueryCvarValueStatus
Source§fn eq(&self, other: &EQueryCvarValueStatus) -> bool
fn eq(&self, other: &EQueryCvarValueStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EQueryCvarValueStatus
impl PartialOrd for EQueryCvarValueStatus
Source§impl Serialize for EQueryCvarValueStatus
impl Serialize for EQueryCvarValueStatus
Source§impl TryFrom<i32> for EQueryCvarValueStatus
impl TryFrom<i32> for EQueryCvarValueStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<EQueryCvarValueStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<EQueryCvarValueStatus, UnknownEnumValue>
Performs the conversion.
impl Copy for EQueryCvarValueStatus
impl Eq for EQueryCvarValueStatus
impl StructuralPartialEq for EQueryCvarValueStatus
Auto Trait Implementations§
impl Freeze for EQueryCvarValueStatus
impl RefUnwindSafe for EQueryCvarValueStatus
impl Send for EQueryCvarValueStatus
impl Sync for EQueryCvarValueStatus
impl Unpin for EQueryCvarValueStatus
impl UnsafeUnpin for EQueryCvarValueStatus
impl UnwindSafe for EQueryCvarValueStatus
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