pub enum Parameter<'a> {
Single(&'a str),
KeyValue(&'a str, &'a str),
}
Expand description
A global or file option to be passed to ffmpeg.
Variants§
Single(&'a str)
An option which does not take a value, ex. -autorotate
.
-autorotate
would be represented as Single("autorotate")
,
as the -
is inserted automatically.
KeyValue(&'a str, &'a str)
An option that takes a key and a value, ex. -t 10
.
-t 10
would be represented as KeyValue("t", "10")
, as
the -
is inserted automatically.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Parameter<'a>
impl<'a> RefUnwindSafe for Parameter<'a>
impl<'a> Send for Parameter<'a>
impl<'a> Sync for Parameter<'a>
impl<'a> Unpin for Parameter<'a>
impl<'a> UnwindSafe for Parameter<'a>
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