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§
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 more