[][src]Enum rg3d::scene::node::Node

pub enum Node {
    Base(Base),
    Light(Light),
    Camera(Camera),
    Mesh(Mesh),
    Sprite(Sprite),
    ParticleSystem(ParticleSystem),
}

Variants

Base(Base)
Light(Light)
Camera(Camera)
Mesh(Mesh)
Sprite(Sprite)
ParticleSystem(ParticleSystem)

Methods

impl Node[src]

pub fn from_id(id: u8) -> Result<Self, String>[src]

Creates new Node based on variant id.

pub fn id(&self) -> u8[src]

Returns actual variant id.

pub fn is_mesh(&self) -> bool[src]

pub fn as_mesh(&self) -> &Mesh[src]

pub fn as_mesh_mut(&mut self) -> &mut Mesh[src]

pub fn is_camera(&self) -> bool[src]

pub fn as_camera(&self) -> &Camera[src]

pub fn as_camera_mut(&mut self) -> &mut Camera[src]

pub fn is_light(&self) -> bool[src]

pub fn as_light(&self) -> &Light[src]

pub fn as_light_mut(&mut self) -> &mut Light[src]

pub fn is_particle_system(&self) -> bool[src]

pub fn as_particle_system(&self) -> &ParticleSystem[src]

pub fn as_particle_system_mut(&mut self) -> &mut ParticleSystem[src]

pub fn is_sprite(&self) -> bool[src]

pub fn as_sprite(&self) -> &Sprite[src]

pub fn as_sprite_mut(&mut self) -> &mut Sprite[src]

Trait Implementations

impl AsBase for Node[src]

impl Clone for Node[src]

impl Default for Node[src]

impl Visit for Node[src]

Auto Trait Implementations

impl !RefUnwindSafe for Node

impl Send for Node

impl !Sync for Node

impl Unpin for Node

impl !UnwindSafe for Node

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Visit for T where
    T: FieldData + 'static, 
[src]