pub enum CustomEncoding<'a> {
Format0(&'a [u8], &'a [Supplement]),
Format1(&'a [Range1], &'a [Supplement]),
}Expand description
Custom mapping from character codes to string ids.
Variants§
Format0(&'a [u8], &'a [Supplement])
Sequence of character codes where the string id is equal to the index of the code plus one.
Format1(&'a [Range1], &'a [Supplement])
Sequence of ranges mapping character codes to string ids.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for CustomEncoding<'a>
impl<'a> Clone for CustomEncoding<'a>
Source§fn clone(&self) -> CustomEncoding<'a>
fn clone(&self) -> CustomEncoding<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for CustomEncoding<'a>
impl<'a> RefUnwindSafe for CustomEncoding<'a>
impl<'a> Send for CustomEncoding<'a>
impl<'a> Sync for CustomEncoding<'a>
impl<'a> Unpin for CustomEncoding<'a>
impl<'a> UnsafeUnpin for CustomEncoding<'a>
impl<'a> UnwindSafe for CustomEncoding<'a>
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