pub struct Time { /* private fields */ }
Implementations§
source§impl Time
impl Time
pub fn from_ms(ms: u32) -> Self
pub fn total_ms(&self) -> u32
pub fn frames(&self) -> u32
pub fn fps(&self) -> f32
pub fn set_fps(&mut self, fps: f32)
pub fn set_ms(&mut self, ms: u32)
pub fn to_ass_string(&self) -> String
pub fn to_srt_string(&self) -> String
pub fn to_vtt_string(&self) -> String
Trait Implementations§
source§impl AddAssign<i128> for Time
impl AddAssign<i128> for Time
source§fn add_assign(&mut self, other: i128)
fn add_assign(&mut self, other: i128)
Performs the
+=
operation. Read moresource§impl AddAssign<i16> for Time
impl AddAssign<i16> for Time
source§fn add_assign(&mut self, other: i16)
fn add_assign(&mut self, other: i16)
Performs the
+=
operation. Read moresource§impl AddAssign<i32> for Time
impl AddAssign<i32> for Time
source§fn add_assign(&mut self, other: i32)
fn add_assign(&mut self, other: i32)
Performs the
+=
operation. Read moresource§impl AddAssign<i64> for Time
impl AddAssign<i64> for Time
source§fn add_assign(&mut self, other: i64)
fn add_assign(&mut self, other: i64)
Performs the
+=
operation. Read moresource§impl AddAssign<i8> for Time
impl AddAssign<i8> for Time
source§fn add_assign(&mut self, other: i8)
fn add_assign(&mut self, other: i8)
Performs the
+=
operation. Read moresource§impl AddAssign<u128> for Time
impl AddAssign<u128> for Time
source§fn add_assign(&mut self, other: u128)
fn add_assign(&mut self, other: u128)
Performs the
+=
operation. Read moresource§impl AddAssign<u16> for Time
impl AddAssign<u16> for Time
source§fn add_assign(&mut self, other: u16)
fn add_assign(&mut self, other: u16)
Performs the
+=
operation. Read moresource§impl AddAssign<u32> for Time
impl AddAssign<u32> for Time
source§fn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
Performs the
+=
operation. Read moresource§impl AddAssign<u64> for Time
impl AddAssign<u64> for Time
source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
Performs the
+=
operation. Read moresource§impl AddAssign<u8> for Time
impl AddAssign<u8> for Time
source§fn add_assign(&mut self, other: u8)
fn add_assign(&mut self, other: u8)
Performs the
+=
operation. Read moresource§impl<'de> Deserialize<'de> for Time
impl<'de> Deserialize<'de> for Time
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for Time
impl Error for Time
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for Time
impl PartialEq for Time
source§impl SubAssign<i128> for Time
impl SubAssign<i128> for Time
source§fn sub_assign(&mut self, other: i128)
fn sub_assign(&mut self, other: i128)
Performs the
-=
operation. Read moresource§impl SubAssign<i16> for Time
impl SubAssign<i16> for Time
source§fn sub_assign(&mut self, other: i16)
fn sub_assign(&mut self, other: i16)
Performs the
-=
operation. Read moresource§impl SubAssign<i32> for Time
impl SubAssign<i32> for Time
source§fn sub_assign(&mut self, other: i32)
fn sub_assign(&mut self, other: i32)
Performs the
-=
operation. Read moresource§impl SubAssign<i64> for Time
impl SubAssign<i64> for Time
source§fn sub_assign(&mut self, other: i64)
fn sub_assign(&mut self, other: i64)
Performs the
-=
operation. Read moresource§impl SubAssign<i8> for Time
impl SubAssign<i8> for Time
source§fn sub_assign(&mut self, other: i8)
fn sub_assign(&mut self, other: i8)
Performs the
-=
operation. Read moresource§impl SubAssign<u128> for Time
impl SubAssign<u128> for Time
source§fn sub_assign(&mut self, other: u128)
fn sub_assign(&mut self, other: u128)
Performs the
-=
operation. Read moresource§impl SubAssign<u16> for Time
impl SubAssign<u16> for Time
source§fn sub_assign(&mut self, other: u16)
fn sub_assign(&mut self, other: u16)
Performs the
-=
operation. Read moresource§impl SubAssign<u32> for Time
impl SubAssign<u32> for Time
source§fn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
Performs the
-=
operation. Read moresource§impl SubAssign<u64> for Time
impl SubAssign<u64> for Time
source§fn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
Performs the
-=
operation. Read moresource§impl SubAssign<u8> for Time
impl SubAssign<u8> for Time
source§fn sub_assign(&mut self, other: u8)
fn sub_assign(&mut self, other: u8)
Performs the
-=
operation. Read moreimpl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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