[][src]Struct ucd_trie::TrieSetOwned

pub struct TrieSetOwned { /* fields omitted */ }

An owned trie set.

Methods

impl TrieSetOwned[src]

pub fn from_scalars<I, C>(scalars: I) -> Result<TrieSetOwned> where
    I: IntoIterator<Item = C>,
    C: Borrow<char>, 
[src]

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]

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]

impl Debug for TrieSetOwned[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.