pub struct GlobalEdge {}Expand description
An undirected edge, defined in global (3D) coordinates
In contrast to HalfEdge, GlobalEdge is undirected, meaning it has no
defined direction. This means it can be used to determine whether two
HalfEdges map to the same GlobalEdge, regardless of their direction.
See HalfEdge’s documentation for more information on the relationship
between HalfEdge and GlobalEdge.
§Equality
GlobalEdge contains no data and exists purely to be used within a
Handle, where Handle::id can be used to compare different instances of
GlobalEdge.
If GlobalEdge had Eq/PartialEq implementations, it containing no data
would mean that all instances of GlobalEdge would be considered equal.
This would be very error-prone.
If you need to reference a GlobalEdge from a struct that needs to derive
Eq/Ord/…, you can use HandleWrapper<GlobalEdge> to do that. It will
use Handle::id to provide those Eq/Ord/… implementations.
Implementations§
Source§impl GlobalEdge
impl GlobalEdge
Trait Implementations§
Source§impl Clone for GlobalEdge
impl Clone for GlobalEdge
Source§fn clone(&self) -> GlobalEdge
fn clone(&self) -> GlobalEdge
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalEdge
impl Debug for GlobalEdge
Source§impl Default for GlobalEdge
impl Default for GlobalEdge
Source§fn default() -> GlobalEdge
fn default() -> GlobalEdge
Source§impl From<GlobalEdge> for Object<Bare>
impl From<GlobalEdge> for Object<Bare>
Source§fn from(object: GlobalEdge) -> Self
fn from(object: GlobalEdge) -> Self
Source§impl Hash for GlobalEdge
impl Hash for GlobalEdge
Source§impl Insert for GlobalEdge
impl Insert for GlobalEdge
Source§impl TransformObject for GlobalEdge
impl TransformObject for GlobalEdge
Source§fn transform_with_cache(
self,
_: &Transform,
_: &mut Services,
_: &mut TransformCache,
) -> Self
fn transform_with_cache( self, _: &Transform, _: &mut Services, _: &mut TransformCache, ) -> Self
Source§fn transform(self, transform: &Transform, services: &mut Services) -> Self
fn transform(self, transform: &Transform, services: &mut Services) -> Self
Source§impl Validate for GlobalEdge
impl Validate for GlobalEdge
Source§fn validate_with_config(
&self,
_: &ValidationConfig,
_: &mut Vec<ValidationError>,
)
fn validate_with_config( &self, _: &ValidationConfig, _: &mut Vec<ValidationError>, )
Source§fn validate_and_return_first_error(&self) -> Result<(), ValidationError>
fn validate_and_return_first_error(&self) -> Result<(), ValidationError>
Source§fn validate(&self, errors: &mut Vec<ValidationError>)
fn validate(&self, errors: &mut Vec<ValidationError>)
Auto Trait Implementations§
impl Freeze for GlobalEdge
impl RefUnwindSafe for GlobalEdge
impl Send for GlobalEdge
impl Sync for GlobalEdge
impl Unpin for GlobalEdge
impl UnwindSafe for GlobalEdge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.