Enum constriction::DefaultEncoderFrontendError [−][src]
pub enum DefaultEncoderFrontendError {
ImpossibleSymbol,
}Variants
Expand description
Tried to encode a symbol with zero probability under the used entropy model.
This error can usually be avoided by using a “leaky” distribution, as the
entropy model, i.e., a distribution that assigns a nonzero probability to all
symbols within a finite domain. Leaky distributions can be constructed with,
e.g., a LeakyQuantizer or with
LeakyCategorical::from_floating_point_probabilities.
Trait Implementations
impl Clone for DefaultEncoderFrontendError[src]
impl Clone for DefaultEncoderFrontendError[src]fn clone(&self) -> DefaultEncoderFrontendError[src]
fn clone(&self) -> DefaultEncoderFrontendError[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 DefaultEncoderFrontendError[src]
impl Debug for DefaultEncoderFrontendError[src]impl Display for DefaultEncoderFrontendError[src]
impl Display for DefaultEncoderFrontendError[src]impl Error for DefaultEncoderFrontendError[src]
impl Error for DefaultEncoderFrontendError[src]fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
impl Eq for DefaultEncoderFrontendError[src]
impl StructuralEq for DefaultEncoderFrontendError[src]
impl StructuralPartialEq for DefaultEncoderFrontendError[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultEncoderFrontendError
impl Send for DefaultEncoderFrontendError
impl Sync for DefaultEncoderFrontendError
impl Unpin for DefaultEncoderFrontendError
impl UnwindSafe for DefaultEncoderFrontendError
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 = TThe 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