Struct Reason
pub struct Reason(/* private field */);
The reason for why something, such as a generated value, was rejected.
Currently this is merely a wrapper around a message, but more properties may be added in the future.
This is constructed via .into() on a String, &'static str, or
Box<str>.
Implementations
impl Reason
fn message(&self) -> &strReturn the message for this
Reason.The message is intended for human consumption, and is not guaranteed to have any format in particular.
Trait Implementations
impl Clone for Reason
fn clone(&self) -> Self
impl Debug for Reason
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for Reason
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Reason
impl From<&'static str> for Reason
fn from(s: &'static str) -> Self
impl From<Box<str>> for Reason
fn from(s: Box<str>) -> Self
impl From<String> for Reason
fn from(s: String) -> Self
impl Hash for Reason
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for Reason
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for Reason
fn eq(&self, other: &Self) -> bool
impl PartialOrd for Reason
fn partial_cmp(&self, other: &Self) -> Option<Ordering>