pub enum ItemType {
NatInt(i64),
NatFloat(f64),
NatString(String),
NatBool(bool),
Identifier(String),
ClientTypeName(String),
ServerTypeName(String),
Values(Vec<ItemType>),
}Variants§
NatInt(i64)
NatFloat(f64)
NatString(String)
NatBool(bool)
Identifier(String)
ClientTypeName(String)
ServerTypeName(String)
Values(Vec<ItemType>)
Implementations§
Source§impl ItemType
impl ItemType
pub fn is_int(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_boolean(&self) -> bool
pub fn is_client(&self) -> bool
pub fn is_server(&self) -> bool
pub fn is_identifier(&self) -> bool
pub fn is_values(&self) -> bool
pub fn as_identifier(&self) -> Option<String>
pub fn as_string_value(&self) -> Option<String>
pub fn as_int_value(&self) -> Option<i64>
pub fn as_float_value(&self) -> Option<f64>
pub fn as_bool_value(&self) -> Option<bool>
pub fn as_client_name(&self) -> Option<String>
pub fn as_server_name(&self) -> Option<String>
pub fn as_values(&self) -> Option<Vec<ItemType>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemType
impl<'de> Deserialize<'de> for ItemType
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
Auto Trait Implementations§
impl Freeze for ItemType
impl RefUnwindSafe for ItemType
impl Send for ItemType
impl Sync for ItemType
impl Unpin for ItemType
impl UnsafeUnpin for ItemType
impl UnwindSafe for ItemType
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