pub struct WordPieces { /* private fields */ }
Expand description

A set of word pieces.

Implementations

Construct new word pieces instance.

The arguments are set of word-initial pieces and the set o continuation pieces. The continuation set pieces must not have continuation markers (such as ##).

Look up the index of an initial word piece.

Look up the index of an continuation word piece.

Split a string into word pieces.

Returns an iterator over the word pieces.

Trait Implementations

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.