pub enum PropertyValue {
Byte(u8),
TwoByteInteger(u16),
FourByteInteger(u32),
VariableByteInteger(u32),
BinaryData(Bytes),
Utf8String(String),
Utf8StringPair(String, String),
}Expand description
Property value storage
Variants§
Byte(u8)
TwoByteInteger(u16)
FourByteInteger(u32)
VariableByteInteger(u32)
BinaryData(Bytes)
Utf8String(String)
Utf8StringPair(String, String)
Implementations§
Source§impl PropertyValue
impl PropertyValue
Sourcepub fn value_type(&self) -> PropertyValueType
pub fn value_type(&self) -> PropertyValueType
Gets the value type
Sourcepub fn matches_type(&self, expected: PropertyValueType) -> bool
pub fn matches_type(&self, expected: PropertyValueType) -> bool
Validates that this value matches the expected type for a property
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 PartialEq for PropertyValue
impl PartialEq for PropertyValue
impl Eq for PropertyValue
impl StructuralPartialEq for 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