pub enum Object<F: Form> {
Cycle(F::Form<Cycle>),
Face(F::Form<Face>),
GlobalEdge(F::Form<GlobalEdge>),
HalfEdge(F::Form<HalfEdge>),
Shell(F::Form<Shell>),
Sketch(F::Form<Sketch>),
Solid(F::Form<Solid>),
Surface(F::Form<Surface>),
Vertex(F::Form<Vertex>),
}Expand description
An object
This enum is generic over the form that the object takes. An
Object<Bare> contains bare objects, like Curve. An
Object<BehindHandle> contains handles, like Handle<Curve>.
Variants§
Cycle(F::Form<Cycle>)
A cycle
Face(F::Form<Face>)
A face
GlobalEdge(F::Form<GlobalEdge>)
A global edge
HalfEdge(F::Form<HalfEdge>)
A half-edge
Shell(F::Form<Shell>)
A shell
Sketch(F::Form<Sketch>)
A sketch
Solid(F::Form<Solid>)
A solid
Surface(F::Form<Surface>)
A surface
Vertex(F::Form<Vertex>)
A vertex
Implementations§
Source§impl Object<BehindHandle>
impl Object<BehindHandle>
Source§impl Object<WithHandle>
impl Object<WithHandle>
Sourcepub fn insert(self, objects: &mut Objects) -> Object<BehindHandle>
pub fn insert(self, objects: &mut Objects) -> Object<BehindHandle>
Insert the object into its respective store
Trait Implementations§
Source§impl From<(Handle<GlobalEdge>, GlobalEdge)> for Object<WithHandle>
impl From<(Handle<GlobalEdge>, GlobalEdge)> for Object<WithHandle>
Source§fn from((handle, object): (Handle<GlobalEdge>, GlobalEdge)) -> Self
fn from((handle, object): (Handle<GlobalEdge>, GlobalEdge)) -> Self
Converts to this type from the input type.
Source§impl From<GlobalEdge> for Object<Bare>
impl From<GlobalEdge> for Object<Bare>
Source§fn from(object: GlobalEdge) -> Self
fn from(object: GlobalEdge) -> Self
Converts to this type from the input type.
Source§impl From<Handle<GlobalEdge>> for Object<BehindHandle>
impl From<Handle<GlobalEdge>> for Object<BehindHandle>
Source§fn from(object: Handle<GlobalEdge>) -> Self
fn from(object: Handle<GlobalEdge>) -> Self
Converts to this type from the input type.
Source§impl From<Object<WithHandle>> for Object<BehindHandle>
impl From<Object<WithHandle>> for Object<BehindHandle>
Source§fn from(object: Object<WithHandle>) -> Self
fn from(object: Object<WithHandle>) -> Self
Converts to this type from the input type.
Source§impl<F: Ord + Form> Ord for Object<F>
impl<F: Ord + Form> Ord for Object<F>
Source§impl<F: PartialOrd + Form> PartialOrd for Object<F>where
F::Form<Cycle>: PartialOrd,
F::Form<Face>: PartialOrd,
F::Form<GlobalEdge>: PartialOrd,
F::Form<HalfEdge>: PartialOrd,
F::Form<Shell>: PartialOrd,
F::Form<Sketch>: PartialOrd,
F::Form<Solid>: PartialOrd,
F::Form<Surface>: PartialOrd,
F::Form<Vertex>: PartialOrd,
impl<F: PartialOrd + Form> PartialOrd for Object<F>where
F::Form<Cycle>: PartialOrd,
F::Form<Face>: PartialOrd,
F::Form<GlobalEdge>: PartialOrd,
F::Form<HalfEdge>: PartialOrd,
F::Form<Shell>: PartialOrd,
F::Form<Sketch>: PartialOrd,
F::Form<Solid>: PartialOrd,
F::Form<Surface>: PartialOrd,
F::Form<Vertex>: PartialOrd,
impl<F: Eq + Form> Eq for Object<F>
impl<F: Form> StructuralPartialEq for Object<F>
Auto Trait Implementations§
impl<F> Freeze for Object<F>where
<F as Form>::Form<Cycle>: Freeze,
<F as Form>::Form<Face>: Freeze,
<F as Form>::Form<GlobalEdge>: Freeze,
<F as Form>::Form<HalfEdge>: Freeze,
<F as Form>::Form<Shell>: Freeze,
<F as Form>::Form<Sketch>: Freeze,
<F as Form>::Form<Solid>: Freeze,
<F as Form>::Form<Surface>: Freeze,
<F as Form>::Form<Vertex>: Freeze,
impl<F> RefUnwindSafe for Object<F>where
<F as Form>::Form<Cycle>: RefUnwindSafe,
<F as Form>::Form<Face>: RefUnwindSafe,
<F as Form>::Form<GlobalEdge>: RefUnwindSafe,
<F as Form>::Form<HalfEdge>: RefUnwindSafe,
<F as Form>::Form<Shell>: RefUnwindSafe,
<F as Form>::Form<Sketch>: RefUnwindSafe,
<F as Form>::Form<Solid>: RefUnwindSafe,
<F as Form>::Form<Surface>: RefUnwindSafe,
<F as Form>::Form<Vertex>: RefUnwindSafe,
impl<F> Send for Object<F>where
<F as Form>::Form<Cycle>: Send,
<F as Form>::Form<Face>: Send,
<F as Form>::Form<GlobalEdge>: Send,
<F as Form>::Form<HalfEdge>: Send,
<F as Form>::Form<Shell>: Send,
<F as Form>::Form<Sketch>: Send,
<F as Form>::Form<Solid>: Send,
<F as Form>::Form<Surface>: Send,
<F as Form>::Form<Vertex>: Send,
impl<F> Sync for Object<F>where
<F as Form>::Form<Cycle>: Sync,
<F as Form>::Form<Face>: Sync,
<F as Form>::Form<GlobalEdge>: Sync,
<F as Form>::Form<HalfEdge>: Sync,
<F as Form>::Form<Shell>: Sync,
<F as Form>::Form<Sketch>: Sync,
<F as Form>::Form<Solid>: Sync,
<F as Form>::Form<Surface>: Sync,
<F as Form>::Form<Vertex>: Sync,
impl<F> Unpin for Object<F>where
<F as Form>::Form<Cycle>: Unpin,
<F as Form>::Form<Face>: Unpin,
<F as Form>::Form<GlobalEdge>: Unpin,
<F as Form>::Form<HalfEdge>: Unpin,
<F as Form>::Form<Shell>: Unpin,
<F as Form>::Form<Sketch>: Unpin,
<F as Form>::Form<Solid>: Unpin,
<F as Form>::Form<Surface>: Unpin,
<F as Form>::Form<Vertex>: Unpin,
impl<F> UnwindSafe for Object<F>where
<F as Form>::Form<Cycle>: UnwindSafe,
<F as Form>::Form<Face>: UnwindSafe,
<F as Form>::Form<GlobalEdge>: UnwindSafe,
<F as Form>::Form<HalfEdge>: UnwindSafe,
<F as Form>::Form<Shell>: UnwindSafe,
<F as Form>::Form<Sketch>: UnwindSafe,
<F as Form>::Form<Solid>: UnwindSafe,
<F as Form>::Form<Surface>: UnwindSafe,
<F as Form>::Form<Vertex>: UnwindSafe,
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&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>
Converts
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>
Converts
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.