[−][src]Enum rg3d::scene::node::Node
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]
fn visit(&mut self, name: &str, visitor: &mut Visitor) -> VisitResult[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Downcast for T where
T: Any, [src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>[src]
fn as_any(&self) -> &(dyn Any + 'static)[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Visit for T where
T: FieldData + 'static, [src]
T: FieldData + 'static,