pub struct MaterialDecl {
pub span: Span,
pub name: String,
pub properties: Vec<NamedArg>,
}Expand description
A material declaration (T29).
material sucrose_cube: Material
yield: 50.0 <qudt:KiloPascal>
density: 1580.0 <qudt:KiloGramPerCubicMetre>;Fields§
§span: Span§name: String§properties: Vec<NamedArg>Material properties as named arguments. Each property has a value and an optional unit IRI (encoded in the NamedArg’s value as a Record or Quantity).
Trait Implementations§
Source§impl Clone for MaterialDecl
impl Clone for MaterialDecl
Source§impl Debug for MaterialDecl
impl Debug for MaterialDecl
Source§impl PartialEq for MaterialDecl
impl PartialEq for MaterialDecl
impl StructuralPartialEq for MaterialDecl
Auto Trait Implementations§
impl Freeze for MaterialDecl
impl RefUnwindSafe for MaterialDecl
impl Send for MaterialDecl
impl Sync for MaterialDecl
impl Unpin for MaterialDecl
impl UnsafeUnpin for MaterialDecl
impl UnwindSafe for MaterialDecl
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