Enum yrs::doc::OffsetKind
source · #[repr(u8)]pub enum OffsetKind {
Bytes = 0,
Utf16 = 1,
}
Expand description
Determines how string length and offsets of [Text]/[XmlText] are being determined.
Variants§
Bytes = 0
Compute editable strings length and offset using UTF-8 byte count.
Utf16 = 1
Compute editable strings length and offset using UTF-16 chars count.
Trait Implementations§
source§impl Clone for OffsetKind
impl Clone for OffsetKind
source§fn clone(&self) -> OffsetKind
fn clone(&self) -> OffsetKind
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 OffsetKind
impl Debug for OffsetKind
source§impl PartialEq for OffsetKind
impl PartialEq for OffsetKind
source§fn eq(&self, other: &OffsetKind) -> bool
fn eq(&self, other: &OffsetKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OffsetKind
impl Eq for OffsetKind
impl StructuralPartialEq for OffsetKind
Auto Trait Implementations§
impl Freeze for OffsetKind
impl RefUnwindSafe for OffsetKind
impl Send for OffsetKind
impl Sync for OffsetKind
impl Unpin for OffsetKind
impl UnwindSafe for OffsetKind
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