pub struct Property {
pub property_index: String,
pub property_value: Box<dyn DataValue>,
}Fields§
§property_index: String§property_value: Box<dyn DataValue>Implementations§
Source§impl Property
impl Property
pub fn new(property_index: String, property_value: Box<dyn DataValue>) -> Self
pub fn unnamed(property_value: Box<dyn DataValue>) -> Self
pub fn serialize(&self, pretty_print: bool, tab_index: usize) -> String
pub fn deserialize(serialized_string: &str) -> Self
pub fn get_value_type(&self) -> PropertyType
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Property
impl !RefUnwindSafe for Property
impl !Send for Property
impl !Sync for Property
impl Unpin for Property
impl UnsafeUnpin 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