Struct ShadowEntries
pub struct ShadowEntries(pub HashMap<usize, ShadowEntry>);Expand description
Per-frame shadow lookup keyed by light index in RenderWorld.lights.
Tuple Fields§
§0: HashMap<usize, ShadowEntry>Implementations§
§impl ShadowEntries
impl ShadowEntries
pub fn insert(&mut self, light_index: usize, entry: ShadowEntry)
pub fn insert(&mut self, light_index: usize, entry: ShadowEntry)
Inserts (or replaces) shadow data for the light at light_index.
pub fn get(&self, light_index: usize) -> Option<&ShadowEntry>
pub fn get(&self, light_index: usize) -> Option<&ShadowEntry>
Looks up shadow data for the light at light_index.
Trait Implementations§
§impl Clone for ShadowEntries
impl Clone for ShadowEntries
§fn clone(&self) -> ShadowEntries
fn clone(&self) -> ShadowEntries
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ShadowEntries
impl Debug for ShadowEntries
§impl Default for ShadowEntries
impl Default for ShadowEntries
§fn default() -> ShadowEntries
fn default() -> ShadowEntries
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShadowEntries
impl RefUnwindSafe for ShadowEntries
impl Send for ShadowEntries
impl Sync for ShadowEntries
impl Unpin for ShadowEntries
impl UnsafeUnpin for ShadowEntries
impl UnwindSafe for ShadowEntries
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