pub enum MaterialKind {
Digital {
source: Option<MaterialSource>,
},
Physical {
identifier: Option<String>,
quantity: Option<u32>,
},
}Expand description
What kind of material and its resolved source/identifier.
Variants§
Digital
Digital: loaded from file path. None if source not yet provided.
Fields
§
source: Option<MaterialSource>Resolved file source, or None if not yet provided.
Physical
Physical: optional identifier string for display.
Trait Implementations§
Source§impl Clone for MaterialKind
impl Clone for MaterialKind
Source§fn clone(&self) -> MaterialKind
fn clone(&self) -> MaterialKind
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 MaterialKind
impl RefUnwindSafe for MaterialKind
impl Send for MaterialKind
impl Sync for MaterialKind
impl Unpin for MaterialKind
impl UnsafeUnpin for MaterialKind
impl UnwindSafe for MaterialKind
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