pub struct Mp3dObjectCategory { /* private fields */ }Expand description
Matterport3D semantic object category.
The default mapping is mpcat40, and Raw returns the original MP3D
dataset category mapping.
Implementations§
Source§impl Mp3dObjectCategory
impl Mp3dObjectCategory
Sourcepub const fn source_index(&self) -> i32
pub const fn source_index(&self) -> i32
Returns the category index from the source descriptor.
Sourcepub const fn index(&self, mapping: Mp3dCategoryMapping) -> Option<i32>
pub const fn index(&self, mapping: Mp3dCategoryMapping) -> Option<i32>
Returns the category index under the requested mapping.
Sourcepub fn name(&self, mapping: Mp3dCategoryMapping) -> Option<&str>
pub fn name(&self, mapping: Mp3dCategoryMapping) -> Option<&str>
Returns the category name under the requested mapping.
Trait Implementations§
Source§impl Clone for Mp3dObjectCategory
impl Clone for Mp3dObjectCategory
Source§fn clone(&self) -> Mp3dObjectCategory
fn clone(&self) -> Mp3dObjectCategory
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 Mp3dObjectCategory
impl Debug for Mp3dObjectCategory
Source§impl Display for Mp3dObjectCategory
impl Display for Mp3dObjectCategory
Source§impl PartialEq for Mp3dObjectCategory
impl PartialEq for Mp3dObjectCategory
Source§fn eq(&self, other: &Mp3dObjectCategory) -> bool
fn eq(&self, other: &Mp3dObjectCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Mp3dObjectCategory
impl StructuralPartialEq for Mp3dObjectCategory
Auto Trait Implementations§
impl Freeze for Mp3dObjectCategory
impl RefUnwindSafe for Mp3dObjectCategory
impl Send for Mp3dObjectCategory
impl Sync for Mp3dObjectCategory
impl Unpin for Mp3dObjectCategory
impl UnsafeUnpin for Mp3dObjectCategory
impl UnwindSafe for Mp3dObjectCategory
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