pub struct UttGeometryPoint {
pub point_x: f32,
pub point_y: f32,
pub point_z: f32,
}Expand description
One vertex of a trigger’s Geometry.
A copy of the shared block while the two vocabularies coexist. All three
labels are recorded identically for Utt and Git – type, required,
constraint, omission, liveness, absent-value and substitute – so the two
collapse back into one type when GIT moves. Ute’s geometry is a
different three labels and shares nothing with either.
Fields§
§point_x: f32X coordinate (PointX).
point_y: f32Y coordinate (PointY).
point_z: f32Z coordinate (PointZ).
Implementations§
Source§impl UttGeometryPoint
impl UttGeometryPoint
Sourcepub const PARTS: &'static [&'static [Field]]
pub const PARTS: &'static [&'static [Field]]
This type’s schema in parts, which is what a container holding it references.
Own fields first, then one part per flattened child in the order they are declared.
Sourcepub fn read_declared(root: &GffStruct) -> Self
pub fn read_declared(root: &GffStruct) -> Self
Reads every declared field off root.
Absent fields take the entry’s own answer, so a fallback is derived from the declaration rather than restated beside it.
A field declaring a hand-written read is left at that answer for the view to overwrite.
Sourcepub fn write_declared(&self, root: &mut GffStruct)
pub fn write_declared(&self, root: &mut GffStruct)
Writes every declared field onto root, leaving out the ones
their entry says the engine’s own writer leaves out.
A field declaring a hand-written write is not touched here.
Sourcepub fn read_element(structure: &GffStruct) -> Self
pub fn read_element(structure: &GffStruct) -> Self
Reads one element of a list of this type.
Sourcepub fn write_element(&self, structure: &mut GffStruct)
pub fn write_element(&self, structure: &mut GffStruct)
Writes one element of a list of this type.
Trait Implementations§
Source§impl Clone for UttGeometryPoint
impl Clone for UttGeometryPoint
Source§fn clone(&self) -> UttGeometryPoint
fn clone(&self) -> UttGeometryPoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UttGeometryPoint
impl Debug for UttGeometryPoint
Source§impl Default for UttGeometryPoint
impl Default for UttGeometryPoint
Source§impl HasSchema for UttGeometryPoint
impl HasSchema for UttGeometryPoint
Source§impl PartialEq for UttGeometryPoint
impl PartialEq for UttGeometryPoint
Source§fn eq(&self, other: &UttGeometryPoint) -> bool
fn eq(&self, other: &UttGeometryPoint) -> bool
self and other values to be equal, and is used by ==.