Struct Char16TrieIterator
struct Char16TrieIterator<'a> { ... }
This struct represents an iterator over a Char16Trie.
Implementations
impl<'a> Char16TrieIterator<'a>
fn new(trie: &'a ZeroSlice<u16>) -> SelfReturns a new
Char16TrieIteratorbacked by borrowed data for thetriearrayfn next(self: &mut Self, c: char) -> TrieResultTraverses the trie from the current state for this input char.
Examples
use ; use ZeroVec; // A Char16Trie containing the ASCII characters 'a' and 'b'. let trie_data = ; let trie = new; let mut iter = trie.iter; let res = iter.next; assert_eq!; let res = iter.next; assert_eq!; let res = iter.next; assert_eq!;fn next32(self: &mut Self, c: u32) -> TrieResultTraverses the trie from the current state for this input char.
Examples
use ; use ZeroVec; // A Char16Trie containing the ASCII characters 'a' and 'b'. let trie_data = ; let trie = new; let mut iter = trie.iter; let res = iter.next; assert_eq!; let res = iter.next; assert_eq!; let res = iter.next; assert_eq!;fn next16(self: &mut Self, c: u16) -> TrieResultTraverses the trie from the current state for this input char.
Examples
use ; use ZeroVec; // A Char16Trie containing the ASCII characters 'a' and 'b'. let trie_data = ; let trie = new; let mut iter = trie.iter; let res = iter.next16; assert_eq!; let res = iter.next16; assert_eq!; let res = iter.next16; assert_eq!;
impl<'a> Clone for Char16TrieIterator<'a>
fn clone(self: &Self) -> Char16TrieIterator<'a>
impl<'a> Freeze for Char16TrieIterator<'a>
impl<'a> RefUnwindSafe for Char16TrieIterator<'a>
impl<'a> Send for Char16TrieIterator<'a>
impl<'a> Sync for Char16TrieIterator<'a>
impl<'a> Unpin for Char16TrieIterator<'a>
impl<'a> UnsafeUnpin for Char16TrieIterator<'a>
impl<'a> UnwindSafe for Char16TrieIterator<'a>
impl<T> Any for Char16TrieIterator<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Char16TrieIterator<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Char16TrieIterator<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Char16TrieIterator<'a>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> ErasedDestructor for Char16TrieIterator<'a>
impl<T> From for Char16TrieIterator<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Char16TrieIterator<'a>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Char16TrieIterator<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Char16TrieIterator<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Char16TrieIterator<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>