pub struct BuiltinMaterial {
pub id: &'static str,
pub name: &'static str,
pub density: Density,
pub source: &'static str,
pub url: &'static str,
pub basis: Basis,
}Expand description
A built-in material.
Fields§
§id: &'static strStable identifier.
name: &'static strDisplay name.
density: DensityDensity.
source: &'static strThe source, with the table or page.
url: &'static strWhere the source was read.
basis: BasisHow the value relates to the source.
Implementations§
Trait Implementations§
Source§impl Clone for BuiltinMaterial
impl Clone for BuiltinMaterial
Source§fn clone(&self) -> BuiltinMaterial
fn clone(&self) -> BuiltinMaterial
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 moreimpl Copy for BuiltinMaterial
Source§impl Debug for BuiltinMaterial
impl Debug for BuiltinMaterial
Source§impl PartialEq for BuiltinMaterial
impl PartialEq for BuiltinMaterial
Source§fn eq(&self, other: &BuiltinMaterial) -> bool
fn eq(&self, other: &BuiltinMaterial) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BuiltinMaterial
impl Serialize for BuiltinMaterial
impl StructuralPartialEq for BuiltinMaterial
Auto Trait Implementations§
impl Freeze for BuiltinMaterial
impl RefUnwindSafe for BuiltinMaterial
impl Send for BuiltinMaterial
impl Sync for BuiltinMaterial
impl Unpin for BuiltinMaterial
impl UnsafeUnpin for BuiltinMaterial
impl UnwindSafe for BuiltinMaterial
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