Struct rafx_visibility::VisibilityObject
source · [−]pub struct VisibilityObject {
pub handle: VisibilityObjectHandle,
pub id: u64,
pub zone: Option<ZoneHandle>,
pub cull_model: Option<ModelHandle>,
pub transform: Option<Transform>,
pub previous_frame_transform: Option<Transform>,
}
Fields
handle: VisibilityObjectHandle
id: u64
zone: Option<ZoneHandle>
cull_model: Option<ModelHandle>
transform: Option<Transform>
previous_frame_transform: Option<Transform>
Implementations
sourceimpl VisibilityObject
impl VisibilityObject
pub fn new(id: u64, handle: VisibilityObjectHandle) -> Self
pub fn default_bounding_sphere(transform: Transform) -> BoundingSphere
Trait Implementations
sourceimpl Clone for VisibilityObject
impl Clone for VisibilityObject
sourcefn clone(&self) -> VisibilityObject
fn clone(&self) -> VisibilityObject
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for VisibilityObject
impl Default for VisibilityObject
sourcefn default() -> VisibilityObject
fn default() -> VisibilityObject
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for VisibilityObject
impl Send for VisibilityObject
impl Sync for VisibilityObject
impl Unpin for VisibilityObject
impl UnwindSafe for VisibilityObject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more