pub struct CardinalPointReference(/* private fields */);Expand description
Positive IfcCardinalPointReference value.
IFC4 constrains this defined type to values greater than zero. Values 1-19 have standardized placement meanings; larger positive values remain valid schema values and are preserved.
Implementations§
Source§impl CardinalPointReference
impl CardinalPointReference
Sourcepub fn new(value: i64) -> Option<Self>
pub fn new(value: i64) -> Option<Self>
Builds a CardinalPointReference from a raw IfcCardinalPointReference
integer. Returns None if value is not strictly positive, per the
IFC4 WHERE rule on this defined type.
Sourcepub fn standard(self) -> Option<StandardCardinalPoint>
pub fn standard(self) -> Option<StandardCardinalPoint>
Resolves this value to its standardized placement meaning, if it
falls in the reserved 1-19 range; otherwise None.
Trait Implementations§
Source§impl Clone for CardinalPointReference
impl Clone for CardinalPointReference
impl Copy for CardinalPointReference
Source§impl Debug for CardinalPointReference
impl Debug for CardinalPointReference
impl Eq for CardinalPointReference
Source§impl Hash for CardinalPointReference
impl Hash for CardinalPointReference
Source§impl Ord for CardinalPointReference
impl Ord for CardinalPointReference
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CardinalPointReference
impl PartialEq for CardinalPointReference
Source§impl PartialOrd for CardinalPointReference
impl PartialOrd for CardinalPointReference
impl StructuralPartialEq for CardinalPointReference
Auto Trait Implementations§
impl Freeze for CardinalPointReference
impl RefUnwindSafe for CardinalPointReference
impl Send for CardinalPointReference
impl Sync for CardinalPointReference
impl Unpin for CardinalPointReference
impl UnsafeUnpin for CardinalPointReference
impl UnwindSafe for CardinalPointReference
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