pub struct CodePointTrieBuilder<'a, T> {
pub data: CodePointTrieBuilderData<'a, T>,
pub default_value: T,
pub error_value: T,
pub trie_type: TrieType,
}
Expand description
Settings for building a CodePointTrie.
Fields
data: CodePointTrieBuilderData<'a, T>
The data to be encoded.
default_value: T
The default value for code points not specified in the data.
error_value: T
The error value for invalid code points.
trie_type: TrieType
The TrieType
: fast or small.
Implementations
sourceimpl<T> CodePointTrieBuilder<'_, T> where
T: TrieValue + Into<u32>,
impl<T> CodePointTrieBuilder<'_, T> where
T: TrieValue + Into<u32>,
sourcepub fn build(self) -> CodePointTrie<'static, T>
pub fn build(self) -> CodePointTrie<'static, T>
Build the CodePointTrie
.
Under the hood, this function runs ICU4C code compiled into WASM.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for CodePointTrieBuilder<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for CodePointTrieBuilder<'a, T> where
T: Send + Sync,
impl<'a, T> Sync for CodePointTrieBuilder<'a, T> where
T: Sync,
impl<'a, T> Unpin for CodePointTrieBuilder<'a, T> where
T: Unpin,
impl<'a, T> UnwindSafe for CodePointTrieBuilder<'a, T> where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
impl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more