pub struct Rc<'a> {
pub range: u32,
pub value: u32,
pub total_bits: u32,
/* private fields */
}Fields§
§range: u32§value: u32§total_bits: u32Implementations§
Source§impl<'a> Rc<'a>
impl<'a> Rc<'a>
Sourcepub fn new(buf: &'a [u8], size: usize) -> Self
pub fn new(buf: &'a [u8], size: usize) -> Self
ff_opus_rc_dec_init(rc, data, size), data being buf[..size].
Sourcepub fn raw_init(&mut self, end: usize, bytes: u32)
pub fn raw_init(&mut self, end: usize, bytes: u32)
ff_opus_rc_dec_raw_init(rc, data + end, bytes).
pub fn rb_bytes(&self) -> u32
pub fn tell(&self) -> u32
pub fn tell_frac(&self) -> u32
pub fn dec_log(&mut self, bits: u32) -> u32
pub fn get_raw(&mut self, count: u32) -> u32
pub fn dec_uint(&mut self, size: u32) -> u32
pub fn dec_uint_step(&mut self, k0: u32) -> u32
pub fn dec_uint_tri(&mut self, qn: u32) -> u32
pub fn dec_laplace(&mut self, symbol: u32, decay: i32) -> i32
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Rc<'a>
impl<'a> Freeze for Rc<'a>
impl<'a> Move for Rc<'a>
impl<'a> RefUnwindSafe for Rc<'a>
impl<'a> Send for Rc<'a>
impl<'a> Sync for Rc<'a>
impl<'a> Unpin for Rc<'a>
impl<'a> UnsafeUnpin for Rc<'a>
impl<'a> UnwindSafe for Rc<'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
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