pub enum WzObjectType {
File(Box<WzFile>),
MsFile(Box<MsFile>),
Image(Box<WzImage>),
MsImage(Box<MsImage>),
Directory(Box<WzDirectory>),
Property(WzSubProperty),
Value(WzValue),
}
Expand description
All variants of WzObjectType
.
WzObjectType
implement most of the From trait for the types that can be converted to it.
§Example
let wz_int: WzObjectType = 1.into();
assert!(matches!(wz_int, WzObjectType::Value(WzValue::Int(1))));
Variants§
File(Box<WzFile>)
MsFile(Box<MsFile>)
Image(Box<WzImage>)
MsImage(Box<MsImage>)
Directory(Box<WzDirectory>)
Property(WzSubProperty)
Value(WzValue)
Trait Implementations§
Source§impl Clone for WzObjectType
impl Clone for WzObjectType
Source§fn clone(&self) -> WzObjectType
fn clone(&self) -> WzObjectType
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 WzObjectType
impl Debug for WzObjectType
Source§impl From<MsFile> for WzObjectType
impl From<MsFile> for WzObjectType
Source§impl From<MsImage> for WzObjectType
impl From<MsImage> for WzObjectType
Source§impl From<Vector2D> for WzObjectType
impl From<Vector2D> for WzObjectType
Source§impl From<WzDirectory> for WzObjectType
impl From<WzDirectory> for WzObjectType
Source§fn from(i: WzDirectory) -> Self
fn from(i: WzDirectory) -> Self
Converts to this type from the input type.
Source§impl From<WzFile> for WzObjectType
impl From<WzFile> for WzObjectType
Source§impl From<WzImage> for WzObjectType
impl From<WzImage> for WzObjectType
Source§impl From<WzLua> for WzObjectType
impl From<WzLua> for WzObjectType
Source§impl From<WzPng> for WzObjectType
impl From<WzPng> for WzObjectType
Source§impl From<WzRawData> for WzObjectType
impl From<WzRawData> for WzObjectType
Source§impl From<WzSound> for WzObjectType
impl From<WzSound> for WzObjectType
Source§impl From<WzString> for WzObjectType
impl From<WzString> for WzObjectType
Source§impl From<WzVideo> for WzObjectType
impl From<WzVideo> for WzObjectType
Source§impl From<f32> for WzObjectType
impl From<f32> for WzObjectType
Source§impl From<f64> for WzObjectType
impl From<f64> for WzObjectType
Source§impl From<i16> for WzObjectType
impl From<i16> for WzObjectType
Source§impl From<i32> for WzObjectType
impl From<i32> for WzObjectType
Auto Trait Implementations§
impl Freeze for WzObjectType
impl RefUnwindSafe for WzObjectType
impl Send for WzObjectType
impl Sync for WzObjectType
impl Unpin for WzObjectType
impl UnwindSafe for WzObjectType
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more