Enum yrs::OffsetKind
source · [−]#[repr(u8)]
pub enum OffsetKind {
Bytes,
Utf16,
Utf32,
}
Expand description
Determines how string length and offsets of [Text]/[XmlText] are being determined.
Variants
Bytes
Compute editable strings length and offset using UTF-8 byte count.
Utf16
Compute editable strings length and offset using UTF-16 chars count.
Utf32
Compute editable strings length and offset using Unicode code points number.
Trait Implementations
sourceimpl Clone for OffsetKind
impl Clone for OffsetKind
sourcefn clone(&self) -> OffsetKind
fn clone(&self) -> OffsetKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OffsetKind
impl Debug for OffsetKind
sourceimpl PartialEq<OffsetKind> for OffsetKind
impl PartialEq<OffsetKind> for OffsetKind
impl Copy for OffsetKind
impl Eq for OffsetKind
impl StructuralEq for OffsetKind
impl StructuralPartialEq for OffsetKind
Auto Trait Implementations
impl RefUnwindSafe for OffsetKind
impl Send for OffsetKind
impl Sync for OffsetKind
impl Unpin for OffsetKind
impl UnwindSafe for OffsetKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more