pub enum SurfaceFactory {
Quad(SurfaceQuadFactory),
Grid(SurfaceGridFactory),
Circle(SurfaceCircleFactory),
Triangles2d(SurfaceTriangles2dFactory),
Rig {
asset: AssetVariant,
factory: SurfaceRig2dFactory,
},
}Variants§
Quad(SurfaceQuadFactory)
Grid(SurfaceGridFactory)
Circle(SurfaceCircleFactory)
Triangles2d(SurfaceTriangles2dFactory)
Rig
Implementations§
source§impl SurfaceFactory
impl SurfaceFactory
pub fn factory( &self, data: MeshVertexData, assets: &AssetsDatabase ) -> Result<StaticVertexFactory, MeshError>
Trait Implementations§
source§impl Clone for SurfaceFactory
impl Clone for SurfaceFactory
source§fn clone(&self) -> SurfaceFactory
fn clone(&self) -> SurfaceFactory
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 SurfaceFactory
impl Debug for SurfaceFactory
source§impl<'de> Deserialize<'de> for SurfaceFactory
impl<'de> Deserialize<'de> for SurfaceFactory
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceFactory
impl Send for SurfaceFactory
impl Sync for SurfaceFactory
impl Unpin for SurfaceFactory
impl UnwindSafe for SurfaceFactory
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