pub struct Dataset { /* private fields */ }Expand description
A dataset spec with its recordings discovered.
Implementations§
Source§impl Dataset
impl Dataset
Sourcepub fn from_file(path: &Path) -> Result<Self, DatasetError>
pub fn from_file(path: &Path) -> Result<Self, DatasetError>
Reads a dataset TOML file. A relative root is resolved against the file’s folder.
pub fn discover(spec: DatasetSpec, base: &Path) -> Result<Self, DatasetError>
Sourcepub fn participants(&self) -> Option<&Participants>
pub fn participants(&self) -> Option<&Participants>
Participant information from [participants], if the spec has one.
Sourcepub fn channels(&self) -> Option<&ChannelTable>
pub fn channels(&self) -> Option<&ChannelTable>
The channel table from [channels], if the spec has one.
pub fn recordings(&self) -> &[Recording]
pub fn recording(&self, id: &str) -> Option<&Recording>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
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> 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