pub struct SemanticLevel { /* private fields */ }Expand description
Represents a level of a semantic scene.
This follows Habitat-Sim’s SemanticLevel: a level owns lists of regions
and objects and exposes its id and axis-aligned bounding box.
Implementations§
Source§impl SemanticLevel
impl SemanticLevel
Sourcepub fn id(&self) -> String
pub fn id(&self) -> String
Returns this level’s id.
Habitat-Sim represents level ids as the source index converted to a string.
Sourcepub fn region_indices(&self) -> &[usize]
pub fn region_indices(&self) -> &[usize]
Returns indices of regions contained by this level.
Sourcepub fn object_indices(&self) -> &[usize]
pub fn object_indices(&self) -> &[usize]
Returns indices of objects contained by this level.
Trait Implementations§
Source§impl Clone for SemanticLevel
impl Clone for SemanticLevel
Source§fn clone(&self) -> SemanticLevel
fn clone(&self) -> SemanticLevel
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 moreSource§impl Debug for SemanticLevel
impl Debug for SemanticLevel
Source§impl Display for SemanticLevel
impl Display for SemanticLevel
Source§impl PartialEq for SemanticLevel
impl PartialEq for SemanticLevel
Source§fn eq(&self, other: &SemanticLevel) -> bool
fn eq(&self, other: &SemanticLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SemanticLevel
Auto Trait Implementations§
impl Freeze for SemanticLevel
impl RefUnwindSafe for SemanticLevel
impl Send for SemanticLevel
impl Sync for SemanticLevel
impl Unpin for SemanticLevel
impl UnsafeUnpin for SemanticLevel
impl UnwindSafe for SemanticLevel
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