Struct nuscenes_data::base::WithDataset
source · pub struct WithDataset<'a, T> { /* private fields */ }Expand description
A wrapper struct that wraps around a base type with a reference to dataset.
Implementations§
source§impl<'a> WithDataset<'a, CalibratedSensor>
impl<'a> WithDataset<'a, CalibratedSensor>
pub fn sensor(&self) -> WithDataset<'a, Sensor>
source§impl<'a> WithDataset<'a, InstanceInternal>
impl<'a> WithDataset<'a, InstanceInternal>
pub fn category(&self) -> WithDataset<'a, Category>
pub fn sample_annotation_iter( &self ) -> Iter<'a, SampleAnnotation, SliceIter<'a, LongToken>> ⓘ
source§impl<'a> WithDataset<'a, Map>
impl<'a> WithDataset<'a, Map>
source§impl<'a> WithDataset<'a, SampleInternal>
impl<'a> WithDataset<'a, SampleInternal>
pub fn sample_annotation_iter( &self ) -> Iter<'a, SampleAnnotation, SliceIter<'a, LongToken>> ⓘ
pub fn sample_data_iter(&self) -> Iter<'a, SampleData, SliceIter<'a, LongToken>> ⓘ
pub fn scene(&self) -> WithDataset<'a, SceneInternal>
pub fn prev(&self) -> Option<WithDataset<'a, SampleInternal>>
pub fn next(&self) -> Option<WithDataset<'a, SampleInternal>>
source§impl<'a> WithDataset<'a, SampleAnnotation>
impl<'a> WithDataset<'a, SampleAnnotation>
pub fn sample(&self) -> WithDataset<'a, SampleInternal>
pub fn instance(&self) -> WithDataset<'a, InstanceInternal>
pub fn attribute_iter(&self) -> Iter<'a, Attribute, SliceIter<'a, LongToken>> ⓘ
pub fn prev(&self) -> Option<WithDataset<'a, SampleAnnotation>>
pub fn next(&self) -> Option<WithDataset<'a, SampleAnnotation>>
source§impl<'a> WithDataset<'a, SampleData>
impl<'a> WithDataset<'a, SampleData>
pub fn open(&self) -> IoResult<File>
pub fn load_raw(&self) -> NuScenesDataResult<Vec<u8>>
pub fn load(&self) -> NuScenesDataResult<LoadedSampleData>
pub fn sample(&self) -> WithDataset<'a, SampleInternal>
pub fn ego_pose(&self) -> WithDataset<'a, EgoPose>
pub fn calibrated_sensor(&self) -> WithDataset<'a, CalibratedSensor>
pub fn prev(&self) -> Option<WithDataset<'a, SampleData>>
pub fn next(&self) -> Option<WithDataset<'a, SampleData>>
source§impl<'a> WithDataset<'a, SceneInternal>
impl<'a> WithDataset<'a, SceneInternal>
pub fn log(&self) -> WithDataset<'a, Log>
pub fn sample_iter(&self) -> Iter<'a, SampleInternal, SliceIter<'a, LongToken>> ⓘ
Trait Implementations§
source§impl<'a, T: Clone> Clone for WithDataset<'a, T>
impl<'a, T: Clone> Clone for WithDataset<'a, T>
source§fn clone(&self) -> WithDataset<'a, T>
fn clone(&self) -> WithDataset<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a, T: Debug> Debug for WithDataset<'a, T>
impl<'a, T: Debug> Debug for WithDataset<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for WithDataset<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for WithDataset<'a, T>where T: Sync,
impl<'a, T> Sync for WithDataset<'a, T>where T: Sync,
impl<'a, T> Unpin for WithDataset<'a, T>
impl<'a, T> UnwindSafe for WithDataset<'a, T>where T: RefUnwindSafe,
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.