pub struct Properties {
pub title: Option<String>,
pub designation: Option<String>,
pub color: Option<String>,
pub material: Option<Material>,
pub face_colors: Vec<FaceColor>,
}Expand description
What a part is, besides its shape, as its program says: what it is called and ordered as, its colour and what it is made of.
Fields§
§title: Option<String>§designation: Option<String>What it is ordered as, with what it was built with: none for a part made rather than bought.
color: Option<String>§material: Option<Material>§face_colors: Vec<FaceColor>Implementations§
Source§impl Properties
impl Properties
Sourcepub fn material(&self) -> Option<&Material>
pub fn material(&self) -> Option<&Material>
What its part is made of: none for a part whose material is not given, which then has no mass.
Trait Implementations§
Source§impl Clone for Properties
impl Clone for Properties
Source§fn clone(&self) -> Properties
fn clone(&self) -> Properties
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 moreSource§impl Debug for Properties
impl Debug for Properties
Source§impl Default for Properties
impl Default for Properties
Source§fn default() -> Properties
fn default() -> Properties
Returns the “default value” for a type. Read more
Source§impl HasElements<Properties> for Properties
impl HasElements<Properties> for Properties
Source§const SINGLETON: Option<&'static str>
const SINGLETON: Option<&'static str>
The name of the one target of this type a part has, if it has only
one — the topology, say: a reference into it is saved as the
element’s name alone.
Source§type Element<'a> = &'a Properties
type Element<'a> = &'a Properties
What an element resolves to: a borrow of it, or what it gives.
Source§fn element(&self, name: &str) -> GeopResult<&Properties>
fn element(&self, name: &str) -> GeopResult<&Properties>
The element
name, or why there is none.Source§fn undefined() -> Option<&'static Self>
fn undefined() -> Option<&'static Self>
What the target reads as where no step made it, if it reads as
anything then — the datums every part starts with. None by default:
reading it fails.
Source§fn names_target(name: &str) -> bool
fn names_target(name: &str) -> bool
Whether the target named
name could be one of this type: what
tells a pick of an element of it from one of a target of another
type with elements of the same kind (ElementReference::from_picked).
The singleton’s name, for a singleton; any name, by default.Source§impl Kind for Properties
Read whole.
impl Kind for Properties
Read whole.
Source§impl PartialEq for Properties
impl PartialEq for Properties
impl StructuralPartialEq for Properties
Source§impl Target for Properties
Defined once, by the program’s PartProperties step.
impl Target for Properties
Defined once, by the program’s PartProperties step.
Source§const CHAIN: bool = false
const CHAIN: bool = false
Whether several steps may produce a target of this type, each from
what the steps before left (see
crate::reader::Reader::previous):
the model, the datums, the parameters’ values, the listings — what
a program accumulates. A target that is not a chain — a sketch, a
placed part — has one producer, and a second is an error naming
both.Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnsafeUnpin for Properties
impl UnwindSafe for Properties
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