pub struct Edl {
pub title: String,
pub frame_rate: Rational,
pub drop_frame: bool,
pub events: Vec<EdlEvent>,
pub comments: Vec<String>,
pub metadata: HashMap<String, String>,
}Expand description
Complete EDL structure.
Fields§
§title: StringTitle of the EDL.
frame_rate: RationalFrame rate.
drop_frame: boolDrop-frame flag.
events: Vec<EdlEvent>List of events.
comments: Vec<String>Global comments.
metadata: HashMap<String, String>Additional metadata.
Implementations§
Source§impl Edl
impl Edl
Sourcepub fn new(title: String, frame_rate: Rational, drop_frame: bool) -> Self
pub fn new(title: String, frame_rate: Rational, drop_frame: bool) -> Self
Create a new empty EDL.
Sourcepub fn parse(content: &str, format: EdlFormat) -> EdlResult<Self>
pub fn parse(content: &str, format: EdlFormat) -> EdlResult<Self>
Parse EDL from string with specified format.
Sourcepub fn to_format(&self, format: EdlFormat) -> EdlResult<String>
pub fn to_format(&self, format: EdlFormat) -> EdlResult<String>
Convert EDL to specified format.
Sourcepub fn sort_events(&mut self)
pub fn sort_events(&mut self)
Sort events by record in timecode.
Sourcepub fn validate(&self) -> EdlResult<ValidationReport>
pub fn validate(&self) -> EdlResult<ValidationReport>
Validate the EDL.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Edl
impl RefUnwindSafe for Edl
impl Send for Edl
impl Sync for Edl
impl Unpin for Edl
impl UnsafeUnpin for Edl
impl UnwindSafe for Edl
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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