Struct fj_kernel::partial::PartialSurfaceVertex
source · pub struct PartialSurfaceVertex {
pub position: Option<Point<2>>,
pub surface: Option<Handle<Surface>>,
pub global_form: MaybePartial<GlobalVertex>,
}Expand description
A partial SurfaceVertex
See crate::partial for more information.
Fields§
§position: Option<Point<2>>The position of the SurfaceVertex
surface: Option<Handle<Surface>>The surface that the SurfaceVertex is defined in
global_form: MaybePartial<GlobalVertex>The global form of the SurfaceVertex
Implementations§
source§impl PartialSurfaceVertex
impl PartialSurfaceVertex
sourcepub fn build(self, objects: &mut Service<Objects>) -> SurfaceVertex
pub fn build(self, objects: &mut Service<Objects>) -> SurfaceVertex
Build a full SurfaceVertex from the partial surface vertex
Trait Implementations§
source§impl Clone for PartialSurfaceVertex
impl Clone for PartialSurfaceVertex
source§fn clone(&self) -> PartialSurfaceVertex
fn clone(&self) -> PartialSurfaceVertex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PartialSurfaceVertex
impl Debug for PartialSurfaceVertex
source§impl Default for PartialSurfaceVertex
impl Default for PartialSurfaceVertex
source§fn default() -> PartialSurfaceVertex
fn default() -> PartialSurfaceVertex
Returns the “default value” for a type. Read more
source§impl From<&SurfaceVertex> for PartialSurfaceVertex
impl From<&SurfaceVertex> for PartialSurfaceVertex
source§fn from(surface_vertex: &SurfaceVertex) -> Self
fn from(surface_vertex: &SurfaceVertex) -> Self
Converts to this type from the input type.
source§impl From<PartialSurfaceVertex> for MaybePartial<SurfaceVertex>
impl From<PartialSurfaceVertex> for MaybePartial<SurfaceVertex>
source§fn from(partial: PartialSurfaceVertex) -> Self
fn from(partial: PartialSurfaceVertex) -> Self
Converts to this type from the input type.
source§impl MergeWith for PartialSurfaceVertex
impl MergeWith for PartialSurfaceVertex
source§fn merge_with(self, other: impl Into<Self>) -> Self
fn merge_with(self, other: impl Into<Self>) -> Self
Merge this object with another Read more
source§impl Partial for PartialSurfaceVertex
impl Partial for PartialSurfaceVertex
source§impl Replace<Surface> for PartialSurfaceVertex
impl Replace<Surface> for PartialSurfaceVertex
source§impl SurfaceVertexBuilder for PartialSurfaceVertex
impl SurfaceVertexBuilder for PartialSurfaceVertex
source§fn infer_global_form(&mut self) -> &mut Self
fn infer_global_form(&mut self) -> &mut Self
Infer the global form of the partial vertex
Auto Trait Implementations§
impl !RefUnwindSafe for PartialSurfaceVertex
impl Send for PartialSurfaceVertex
impl Sync for PartialSurfaceVertex
impl Unpin for PartialSurfaceVertex
impl !UnwindSafe for PartialSurfaceVertex
Blanket Implementations§
§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. Read more§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. Read more§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. Read more§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. Read more§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.