pub struct ByteProperty {
pub name: Option<String>,
pub value: BytePropertyValue,
}Expand description
A property that stores a u8 or the property’s namespaced name.
Fields§
§name: Option<String>Property name.
value: BytePropertyValueProperty value.
Implementations§
Source§impl ByteProperty
impl ByteProperty
Sourcepub fn new(name: Option<String>, value: BytePropertyValue) -> Self
pub fn new(name: Option<String>, value: BytePropertyValue) -> Self
Creates a new ByteProperty instance.
Sourcepub fn new_byte(name: Option<String>, value: u8) -> Self
pub fn new_byte(name: Option<String>, value: u8) -> Self
Creates a new ByteProperty instance for a u8 value
Sourcepub fn new_namespaced(name: Option<String>, value: String) -> Self
pub fn new_namespaced(name: Option<String>, value: String) -> Self
Creates a new ByteProperty instance for a namespaced enum value
Trait Implementations§
Source§impl Clone for ByteProperty
impl Clone for ByteProperty
Source§fn clone(&self) -> ByteProperty
fn clone(&self) -> ByteProperty
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 ByteProperty
impl Debug for ByteProperty
Source§impl From<ByteProperty> for Property
impl From<ByteProperty> for Property
Source§fn from(v: ByteProperty) -> Property
fn from(v: ByteProperty) -> Property
Converts to this type from the input type.
Source§impl Hash for ByteProperty
impl Hash for ByteProperty
Source§impl PartialEq for ByteProperty
impl PartialEq for ByteProperty
Source§impl PropertyTrait for ByteProperty
impl PropertyTrait for ByteProperty
Source§impl TryInto<ByteProperty> for Property
impl TryInto<ByteProperty> for Property
impl Eq for ByteProperty
impl StructuralPartialEq for ByteProperty
Auto Trait Implementations§
impl Freeze for ByteProperty
impl RefUnwindSafe for ByteProperty
impl Send for ByteProperty
impl Sync for ByteProperty
impl Unpin for ByteProperty
impl UnwindSafe for ByteProperty
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.