pub struct Property { /* private fields */ }
Expand description
Describes a Property, with both its name and value.
Implementations§
source§impl Property
impl Property
sourcepub fn new(name: PropertyName, value: PropertyValue) -> Self
pub fn new(name: PropertyName, value: PropertyValue) -> Self
Creates a new Property object from a name/value pair.
sourcepub fn name(&self) -> &PropertyName
pub fn name(&self) -> &PropertyName
Accesses the name of this property.
sourcepub fn value(&self) -> &PropertyValue
pub fn value(&self) -> &PropertyValue
Accesses the value of this property.
Trait Implementations§
source§impl PartialEq<Property> for Property
impl PartialEq<Property> for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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