pub struct InvalidCodepointError(/* private fields */);
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)>
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 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 for InvalidCodepointError
impl PartialEq for InvalidCodepointError
Source§impl PartialOrd for InvalidCodepointError
impl PartialOrd for InvalidCodepointError
impl Copy for InvalidCodepointError
impl Eq for InvalidCodepointError
impl StructuralPartialEq for InvalidCodepointError
Auto Trait Implementations§
impl Freeze for InvalidCodepointError
impl RefUnwindSafe for InvalidCodepointError
impl Send for InvalidCodepointError
impl Sync for InvalidCodepointError
impl Unpin for InvalidCodepointError
impl UnwindSafe for InvalidCodepointError
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