Struct lzham::TableUpdateRate [−][src]
pub struct TableUpdateRate(_);
The table update rate for compression/decompression.
You can create this by using the new
method or use one of the constants.
Implementations
impl TableUpdateRate
[src]
impl TableUpdateRate
[src]pub const FAST: TableUpdateRate
[src]
pub const FAST: TableUpdateRate
[src]The fastest table update rate. It has a rate of 20
.
pub const DEFAULT: TableUpdateRate
[src]
pub const DEFAULT: TableUpdateRate
[src]The default table update rate. It has a rate of 8
.
pub const SLOW: TableUpdateRate
[src]
pub const SLOW: TableUpdateRate
[src]A moderately slow table update rate. It has a rate of 2
.
pub const VERY_SLOW: TableUpdateRate
[src]
pub const VERY_SLOW: TableUpdateRate
[src]The slowest table update rate. It has a rate of 1
.
pub fn new(rate: u32) -> Self
[src]
pub fn new(rate: u32) -> Self
[src]Create new TableUpdateRate
from given rate
.
If rate
is greater than the fastest rate, the fastest rate is used. Similarly,
if rate
is lower than the slowest rate, the slowest rate is used.
pub fn table_update_settings(&self) -> TableUpdateInterval
[src]
pub fn table_update_settings(&self) -> TableUpdateInterval
[src]Converts the update rate into TableUpdateInterval
.
Trait Implementations
impl Clone for TableUpdateRate
[src]
impl Clone for TableUpdateRate
[src]fn clone(&self) -> TableUpdateRate
[src]
fn clone(&self) -> TableUpdateRate
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TableUpdateRate
[src]
impl Debug for TableUpdateRate
[src]impl Copy for TableUpdateRate
[src]
Auto Trait Implementations
impl RefUnwindSafe for TableUpdateRate
impl Send for TableUpdateRate
impl Sync for TableUpdateRate
impl Unpin for TableUpdateRate
impl UnwindSafe for TableUpdateRate
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more