pub struct InvalidCharError {
pub byte_index: usize,
pub invalid_char: char,
}Expand description
An error indicating that a string is not a valid iCalendar paramtext or TEXT value,
because it contains an invalid character.
Fields§
§byte_index: usizeThe byte index of the invalid character.
invalid_char: charThe invalid character.
Implementations§
Source§impl InvalidCharError
impl InvalidCharError
Sourcepub const fn from_char_index((byte_index, invalid_char): (usize, char)) -> Self
pub const fn from_char_index((byte_index, invalid_char): (usize, char)) -> Self
Constructs an InvalidCharError from a (byte_index, char) pair
as returned by str::char_indices.
Trait Implementations§
Source§impl Clone for InvalidCharError
impl Clone for InvalidCharError
Source§fn clone(&self) -> InvalidCharError
fn clone(&self) -> InvalidCharError
Returns a duplicate 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 InvalidCharError
impl Debug for InvalidCharError
Source§impl PartialEq for InvalidCharError
impl PartialEq for InvalidCharError
impl Copy for InvalidCharError
impl Eq for InvalidCharError
impl StructuralPartialEq for InvalidCharError
Auto Trait Implementations§
impl Freeze for InvalidCharError
impl RefUnwindSafe for InvalidCharError
impl Send for InvalidCharError
impl Sync for InvalidCharError
impl Unpin for InvalidCharError
impl UnsafeUnpin for InvalidCharError
impl UnwindSafe for InvalidCharError
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