pub struct RejectionExhausted;Expand description
The one way conditioned sampling can fail.
A distinct type rather than a variant of the caller’s error enum: it says
something specific about the texture — that a base level ended up against
the end of the range — and the caller is what decides how to report it. It
is re-exported by crate::generate, which is where a caller meets it.
Trait Implementations§
Source§impl Debug for RejectionExhausted
impl Debug for RejectionExhausted
Source§impl Display for RejectionExhausted
impl Display for RejectionExhausted
Source§impl Error for RejectionExhausted
impl Error for RejectionExhausted
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<RejectionExhausted> for GenerateError
impl From<RejectionExhausted> for GenerateError
Source§fn from(err: RejectionExhausted) -> Self
fn from(err: RejectionExhausted) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RejectionExhausted
impl RefUnwindSafe for RejectionExhausted
impl Send for RejectionExhausted
impl Sync for RejectionExhausted
impl Unpin for RejectionExhausted
impl UnsafeUnpin for RejectionExhausted
impl UnwindSafe for RejectionExhausted
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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