pub struct NodeId(/* private fields */);Expand description
Identifies a node of one Bvh. Only valid until that BVH is next
modified (updated, refit or rebuilt).
Implementations§
Source§impl NodeId
impl NodeId
Sourcepub fn index(self) -> usize
pub fn index(self) -> usize
Dense index of the node, below Bvh::node_slots, for keying
per-node data in a plain array. Valid only for the BVH generation
(Bvh::generation) it was obtained in.
Trait Implementations§
impl Copy for NodeId
impl Eq for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnsafeUnpin for NodeId
impl UnwindSafe for NodeId
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