pub enum PropertyValue {
String(RcString),
Bytes(Vec<u8>),
SInt(i32),
UInt(u32),
Float(f64),
}Expand description
Property value type. Properties can hold different types that are encapsulated in this enum.
Variants§
String(RcString)
Property is a string.
Bytes(Vec<u8>)
Property is a byte string.
SInt(i32)
Property is a signed integer.
UInt(u32)
Property is an unsigned integer.
Float(f64)
Property is a float.
Implementations§
Trait Implementations§
Source§impl Clone for PropertyValue
impl Clone for PropertyValue
Source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
Source§impl From<&str> for PropertyValue
impl From<&str> for PropertyValue
Source§impl From<String> for PropertyValue
impl From<String> for PropertyValue
Source§impl From<f64> for PropertyValue
impl From<f64> for PropertyValue
Source§impl From<i32> for PropertyValue
impl From<i32> for PropertyValue
Source§impl From<u32> for PropertyValue
impl From<u32> for PropertyValue
Source§impl<'a> TryInto<&'a str> for &'a PropertyValue
impl<'a> TryInto<&'a str> for &'a PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more