pub struct Recording {
pub title: String,
pub presentation: Presentation,
pub outputs: Vec<Output>,
pub columns: u16,
pub rows: u16,
pub shots: Vec<(String, Snapshot)>,
pub masks: Vec<(Regex, String)>,
pub timeline: Timeline,
}Expand description
What a tape produced.
Fields§
§title: String§presentation: Presentation§outputs: Vec<Output>The tape’s Output words; empty for every format.
columns: u16§rows: u16§shots: Vec<(String, Snapshot)>Screenshots in the order they were taken.
masks: Vec<(Regex, String)>The tape’s Mask rewrites, applied to text grids.
timeline: TimelineImplementations§
Source§impl Recording
impl Recording
Sourcepub fn text_grid(&self, snapshot: &Snapshot) -> String
pub fn text_grid(&self, snapshot: &Snapshot) -> String
A screenshot’s text grid, with the tape’s masks applied.
Sourcepub fn formats(&self, requested: Formats) -> Formats
pub fn formats(&self, requested: Formats) -> Formats
The formats to write: the tape’s Output formats (every format when
it has none) that requested also allows.
Sourcepub fn output_path(&self, format: Format, stem: &str) -> String
pub fn output_path(&self, format: Format, stem: &str) -> String
The file a per-tape format is written to, relative to the output
directory: the path the tape’s Output gave, else <stem>.<ext>.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recording
impl RefUnwindSafe for Recording
impl Send for Recording
impl Sync for Recording
impl Unpin for Recording
impl UnsafeUnpin for Recording
impl UnwindSafe for Recording
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.