pub struct WordPieceWithSource {
pub piece: WordPiece,
pub start_index: usize,
pub end_index: usize,
}Expand description
Encapsulates a WordPiece together with its position in the string it came from.
Fields§
§piece: WordPieceThe word piece.
start_index: usizeThe start index of the piece in the source string.
end_index: usizeThe end index of the piece in the source string.
Trait Implementations§
Source§impl Clone for WordPieceWithSource
impl Clone for WordPieceWithSource
Source§fn clone(&self) -> WordPieceWithSource
fn clone(&self) -> WordPieceWithSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WordPieceWithSource
impl RefUnwindSafe for WordPieceWithSource
impl Send for WordPieceWithSource
impl Sync for WordPieceWithSource
impl Unpin for WordPieceWithSource
impl UnwindSafe for WordPieceWithSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more