pub struct VisualBuilder { /* private fields */ }
Implementations§
source§impl VisualBuilder
impl VisualBuilder
pub fn new( geometry: impl Into<Box<dyn GeometryInterface + Sync + Send>> ) -> Self
sourcepub fn new_full(
name: Option<String>,
origin: Option<Transform>,
geometry: impl Into<Box<dyn GeometryInterface + Sync + Send>>,
material_description: Option<MaterialDescriptor>
) -> Self
pub fn new_full( name: Option<String>, origin: Option<Transform>, geometry: impl Into<Box<dyn GeometryInterface + Sync + Send>>, material_description: Option<MaterialDescriptor> ) -> Self
TODO: Figure out if this will be kept [Added for easier transistion]
pub fn named(self, name: impl Into<String>) -> Self
pub fn tranformed(self, transform: Transform) -> Self
pub fn materialized(self, material_description: MaterialDescriptor) -> Self
Trait Implementations§
source§impl Clone for VisualBuilder
impl Clone for VisualBuilder
source§impl Debug for VisualBuilder
impl Debug for VisualBuilder
source§impl GroupIDChanger for VisualBuilder
impl GroupIDChanger for VisualBuilder
source§unsafe fn change_group_id_unchecked(&mut self, new_group_id: &str)
unsafe fn change_group_id_unchecked(&mut self, new_group_id: &str)
source§fn apply_group_id(&mut self)
fn apply_group_id(&mut self)
Applies
GroupID
delimiter replacements. Read moresource§fn change_group_id(
&mut self,
new_group_id: impl GroupID
) -> Result<(), GroupIDError>
fn change_group_id( &mut self, new_group_id: impl GroupID ) -> Result<(), GroupIDError>
source§impl PartialEq<VisualBuilder> for VisualBuilder
impl PartialEq<VisualBuilder> for VisualBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for VisualBuilder
impl Send for VisualBuilder
impl Sync for VisualBuilder
impl Unpin for VisualBuilder
impl !UnwindSafe for VisualBuilder
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<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.