pub enum Value {
Element(Box<Element>),
String(String),
Integer(i64),
Boolean(bool),
Float(f32),
Vec3(Vec3A),
Affine3(Affine3A),
}Expand description
A packed XML untyped value.
Variants§
Element(Box<Element>)
String(String)
Integer(i64)
Boolean(bool)
Float(f32)
Vec3(Vec3A)
Affine3(Affine3A)
Implementations§
Source§impl Value
impl Value
Sourcepub fn as_element(&self) -> Option<&Element>
pub fn as_element(&self) -> Option<&Element>
Try to get this value as an element if possible.
Sourcepub fn as_integer(&self) -> Option<i64>
pub fn as_integer(&self) -> Option<i64>
Try to get this value as an integer if possible.
Sourcepub fn as_boolean(&self) -> Option<bool>
pub fn as_boolean(&self) -> Option<bool>
Try to get this value as a boolean is possible.
Sourcepub fn as_affine3(&self) -> Option<Affine3A>
pub fn as_affine3(&self) -> Option<Affine3A>
Try to get this value as an affine3 is possible.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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