pub struct EncodingType(/* private fields */);Expand description
Represents the text encoding that the caller uses to process the output.
Providing an EncodingType is recommended because the API provides the
beginning offsets for various outputs, such as tokens and mentions, and
languages that natively use different text encodings may access offsets
differently.
Implementations§
Trait Implementations§
Source§impl Clone for EncodingType
impl Clone for EncodingType
Source§fn clone(&self) -> EncodingType
fn clone(&self) -> EncodingType
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 EncodingType
impl Debug for EncodingType
Source§impl Default for EncodingType
impl Default for EncodingType
Source§fn default() -> EncodingType
fn default() -> EncodingType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EncodingType
impl<'de> Deserialize<'de> for EncodingType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<String> for EncodingType
impl From<String> for EncodingType
Source§impl PartialEq for EncodingType
impl PartialEq for EncodingType
Source§impl Serialize for EncodingType
impl Serialize for EncodingType
impl StructuralPartialEq for EncodingType
Auto Trait Implementations§
impl Freeze for EncodingType
impl RefUnwindSafe for EncodingType
impl Send for EncodingType
impl Sync for EncodingType
impl Unpin for EncodingType
impl UnwindSafe for EncodingType
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