Struct fj_kernel::builder::CycleBuilder
source · pub struct CycleBuilder { /* private fields */ }Expand description
Builder API for Cycle
Implementations§
source§impl CycleBuilder
impl CycleBuilder
sourcepub fn connect_to_edges<Es>(edges: Es, objects: &mut Service<Objects>) -> Selfwhere
Es: IntoIterator<Item = (Handle<HalfEdge>, Curve, [Point<1>; 2])>,
Es::IntoIter: Clone + ExactSizeIterator,
pub fn connect_to_edges<Es>(edges: Es, objects: &mut Service<Objects>) -> Selfwhere Es: IntoIterator<Item = (Handle<HalfEdge>, Curve, [Point<1>; 2])>, Es::IntoIter: Clone + ExactSizeIterator,
Create a cycle whose half-edges are connected to the provided half-edges
The half-edges of the new circle will be coincident with the provided half-edges, but will point in the opposite direction.
Assumes that the provided half-edges, once translated into local equivalents of this cycle, form a cycle themselves.
sourcepub fn polygon<P, Ps>(points: Ps, objects: &mut Service<Objects>) -> Selfwhere
P: Into<Point<2>>,
Ps: IntoIterator<Item = P>,
Ps::IntoIter: Clone + ExactSizeIterator,
pub fn polygon<P, Ps>(points: Ps, objects: &mut Service<Objects>) -> Selfwhere P: Into<Point<2>>, Ps: IntoIterator<Item = P>, Ps::IntoIter: Clone + ExactSizeIterator,
Create a polygon
Trait Implementations§
source§impl Default for CycleBuilder
impl Default for CycleBuilder
source§fn default() -> CycleBuilder
fn default() -> CycleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CycleBuilder
impl Send for CycleBuilder
impl Sync for CycleBuilder
impl Unpin for CycleBuilder
impl !UnwindSafe for CycleBuilder
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§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.§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.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.