pub struct TrajectoryLoader {
pub path: String,
/* private fields */
}
Expand description
A dynamic trajectory allows loading a trajectory Parquet file and converting it to the concrete trajectory state type when desired.
Fields§
§path: String
Implementations§
Source§impl TrajectoryLoader
impl TrajectoryLoader
pub fn from_parquet<P: AsRef<Path>>(path: P) -> Result<Self, InputOutputError>
Sourcepub fn to_traj<S>(&self) -> Result<Traj<S>, InputOutputError>where
S: Interpolatable,
DefaultAllocator: Allocator<S::VecLength> + Allocator<S::Size> + Allocator<S::Size, S::Size>,
pub fn to_traj<S>(&self) -> Result<Traj<S>, InputOutputError>where
S: Interpolatable,
DefaultAllocator: Allocator<S::VecLength> + Allocator<S::Size> + Allocator<S::Size, S::Size>,
Reads through the loaded parquet file and attempts to convert to the provided concrete state.
§Design limitations
For Python compatibility, the file is actually re-read here, although it was read and closed during initialization. This is required because the parquet file reader is not clonable.
Trait Implementations§
Source§impl Clone for TrajectoryLoader
impl Clone for TrajectoryLoader
Source§fn clone(&self) -> TrajectoryLoader
fn clone(&self) -> TrajectoryLoader
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 Display for TrajectoryLoader
impl Display for TrajectoryLoader
Source§impl PartialEq for TrajectoryLoader
impl PartialEq for TrajectoryLoader
impl StructuralPartialEq for TrajectoryLoader
Auto Trait Implementations§
impl Freeze for TrajectoryLoader
impl RefUnwindSafe for TrajectoryLoader
impl Send for TrajectoryLoader
impl Sync for TrajectoryLoader
impl Unpin for TrajectoryLoader
impl UnwindSafe for TrajectoryLoader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. 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.