pub struct PropertyReference {
pub property_identifier: PropertyIdentifier,
pub property_array_index: Option<u32>,
}Fields§
§property_identifier: PropertyIdentifierProperty identifier
property_array_index: Option<u32>Property array index (optional)
Implementations§
Source§impl PropertyReference
impl PropertyReference
Sourcepub fn new(property_identifier: PropertyIdentifier) -> Self
pub fn new(property_identifier: PropertyIdentifier) -> Self
Create a new property reference
Sourcepub fn with_array_index(
property_identifier: PropertyIdentifier,
array_index: u32,
) -> Self
pub fn with_array_index( property_identifier: PropertyIdentifier, array_index: u32, ) -> Self
Create a new property reference with array index
pub fn encode(&self, buffer: &mut Vec<u8>) -> EncodingResult<()>
Trait Implementations§
Source§impl Clone for PropertyReference
impl Clone for PropertyReference
Source§fn clone(&self) -> PropertyReference
fn clone(&self) -> PropertyReference
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 moreAuto Trait Implementations§
impl Freeze for PropertyReference
impl RefUnwindSafe for PropertyReference
impl Send for PropertyReference
impl Sync for PropertyReference
impl Unpin for PropertyReference
impl UnsafeUnpin for PropertyReference
impl UnwindSafe for PropertyReference
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