Struct ucd_trie::TrieSetOwned [−][src]
An owned trie set.
Implementations
impl TrieSetOwned
[src]
pub fn from_scalars<I, C>(scalars: I) -> Result<TrieSetOwned> where
I: IntoIterator<Item = C>,
C: Borrow<char>,
[src]
I: IntoIterator<Item = C>,
C: Borrow<char>,
Create a new trie set from a set of Unicode scalar values.
This returns an error if a set could not be sufficiently compressed to fit into a trie.
pub fn from_codepoints<I, C>(codepoints: I) -> Result<TrieSetOwned> where
I: IntoIterator<Item = C>,
C: Borrow<u32>,
[src]
I: IntoIterator<Item = C>,
C: Borrow<u32>,
Create a new trie set from a set of Unicode scalar values.
This returns an error if a set could not be sufficiently compressed to
fit into a trie. This also returns an error if any of the given
codepoints are greater than 0x10FFFF
.
pub fn as_slice(&self) -> TrieSetSlice<'_>
[src]
Return this set as a slice.
pub fn contains_char(&self, c: char) -> bool
[src]
Returns true if and only if the given Unicode scalar value is in this set.
pub fn contains_u32(&self, cp: u32) -> bool
[src]
Returns true if and only if the given codepoint is in this set.
If the given value exceeds the codepoint range (i.e., it’s greater
than 0x10FFFF
), then this returns false.
Trait Implementations
impl Clone for TrieSetOwned
[src]
fn clone(&self) -> TrieSetOwned
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TrieSetOwned
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrieSetOwned
impl Send for TrieSetOwned
impl Sync for TrieSetOwned
impl Unpin for TrieSetOwned
impl UnwindSafe for TrieSetOwned
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,