pub struct Layers {
pub mask: u32,
}Expand description
class Layers.
three.js’ mask is a JS number used as an int32: 1 << layer | 0 and the
>>> 0 in set(). A u32 is the same 32 bits with no sign games.
Fields§
§mask: u32Layers.mask.
Implementations§
Source§impl Layers
impl Layers
Sourcepub fn enable_all(&mut self)
pub fn enable_all(&mut self)
Layers.enableAll().
Sourcepub fn disable_all(&mut self)
pub fn disable_all(&mut self)
Layers.disableAll().
Sourcepub fn is_enabled(&self, layer: u32) -> bool
pub fn is_enabled(&self, layer: u32) -> bool
Layers.isEnabled( layer ).
Trait Implementations§
impl Copy for Layers
impl Eq for Layers
impl StructuralPartialEq for Layers
Auto Trait Implementations§
impl Freeze for Layers
impl RefUnwindSafe for Layers
impl Send for Layers
impl Sync for Layers
impl Unpin for Layers
impl UnsafeUnpin for Layers
impl UnwindSafe for Layers
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.