pub struct CompositeOccluder<'a> {
pub a: &'a dyn WorldOccluder,
pub b: &'a dyn WorldOccluder,
}Expand description
XS.2 — a WorldOccluder that ORs two others (e.g. the grid occluder +
the sprite occluder), so a single shadow query covers both. true if
either blocks the ray.
Fields§
§a: &'a dyn WorldOccluder§b: &'a dyn WorldOccluderTrait Implementations§
Source§impl WorldOccluder for CompositeOccluder<'_>
impl WorldOccluder for CompositeOccluder<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CompositeOccluder<'a>
impl<'a> !UnwindSafe for CompositeOccluder<'a>
impl<'a> Freeze for CompositeOccluder<'a>
impl<'a> Send for CompositeOccluder<'a>
impl<'a> Sync for CompositeOccluder<'a>
impl<'a> Unpin for CompositeOccluder<'a>
impl<'a> UnsafeUnpin for CompositeOccluder<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more