Struct spinoso_string::InvalidCodepointError
source · pub struct InvalidCodepointError(_);
Implementations§
source§impl InvalidCodepointError
impl InvalidCodepointError
pub const EXCEPTION_TYPE: &'static str = "RangeError"
pub const fn invalid_utf8_codepoint(codepoint: u32) -> Self
pub const fn codepoint_out_of_range(codepoint: i64) -> Self
pub const fn is_invalid_utf8(self) -> bool
pub const fn is_out_of_range(self) -> bool
pub fn message(self) -> String
Trait Implementations§
source§impl Clone for InvalidCodepointError
impl Clone for InvalidCodepointError
source§fn clone(&self) -> InvalidCodepointError
fn clone(&self) -> InvalidCodepointError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvalidCodepointError
impl Debug for InvalidCodepointError
source§impl Display for InvalidCodepointError
impl Display for InvalidCodepointError
source§impl Error for InvalidCodepointError
impl Error for InvalidCodepointError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for InvalidCodepointError
impl Hash for InvalidCodepointError
source§impl Ord for InvalidCodepointError
impl Ord for InvalidCodepointError
source§fn cmp(&self, other: &InvalidCodepointError) -> Ordering
fn cmp(&self, other: &InvalidCodepointError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<InvalidCodepointError> for InvalidCodepointError
impl PartialEq<InvalidCodepointError> for InvalidCodepointError
source§fn eq(&self, other: &InvalidCodepointError) -> bool
fn eq(&self, other: &InvalidCodepointError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InvalidCodepointError> for InvalidCodepointError
impl PartialOrd<InvalidCodepointError> for InvalidCodepointError
source§fn partial_cmp(&self, other: &InvalidCodepointError) -> Option<Ordering>
fn partial_cmp(&self, other: &InvalidCodepointError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more