pub struct Bitrate { /* private fields */ }Implementations§
Source§impl Bitrate
impl Bitrate
pub fn new(bits_per_second: u64) -> Result<Bitrate, BitrateError>
pub fn bits_per_second(&self) -> u64
pub fn kilobits_per_second(&self) -> f64
pub fn megabits_per_second(&self) -> f64
Trait Implementations§
impl Copy for Bitrate
impl Eq for Bitrate
impl StructuralPartialEq for Bitrate
Auto Trait Implementations§
impl Freeze for Bitrate
impl RefUnwindSafe for Bitrate
impl Send for Bitrate
impl Sync for Bitrate
impl Unpin for Bitrate
impl UnsafeUnpin for Bitrate
impl UnwindSafe for Bitrate
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