pub enum SemanticsValues {
Surfaces(Vec<Option<usize>>),
Shells(Vec<Option<SemanticsShell>>),
Solids(Vec<Option<SemanticsSolid>>),
}Expand description
The values array of a Semantics object: one index into surfaces per
surface of the geometry, so it is nested exactly one level less deeply
than that geometry’s boundaries.
As with crate::MaterialValues, null is permitted at every level, not
only at the leaf, and every None must serialize back as null rather
than [] (finding #7).
The variants are ordered shallowest-first; serde tries them in declaration order, so a value only reaches a deeper variant when the shallower ones cannot describe it.
Variants§
Surfaces(Vec<Option<usize>>)
MultiSurface, CompositeSurface: one index per surface.
Shells(Vec<Option<SemanticsShell>>)
Solid: one index per surface, per shell.
Solids(Vec<Option<SemanticsSolid>>)
MultiSolid, CompositeSolid: one index per surface, per shell, per
solid.
Trait Implementations§
Source§impl Clone for SemanticsValues
impl Clone for SemanticsValues
Source§fn clone(&self) -> SemanticsValues
fn clone(&self) -> SemanticsValues
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 SemanticsValues
impl Debug for SemanticsValues
Source§impl<'de> Deserialize<'de> for SemanticsValues
impl<'de> Deserialize<'de> for SemanticsValues
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SemanticsValues
Source§impl PartialEq for SemanticsValues
impl PartialEq for SemanticsValues
Source§impl Serialize for SemanticsValues
impl Serialize for SemanticsValues
impl StructuralPartialEq for SemanticsValues
Auto Trait Implementations§
impl Freeze for SemanticsValues
impl RefUnwindSafe for SemanticsValues
impl Send for SemanticsValues
impl Sync for SemanticsValues
impl Unpin for SemanticsValues
impl UnsafeUnpin for SemanticsValues
impl UnwindSafe for SemanticsValues
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