Struct text_tokenizer::TextToken
source · pub struct TextToken {
pub token: Token2,
/* private fields */
}Fields§
§token: Token2Implementations§
source§impl TextToken
impl TextToken
pub fn local(&self) -> Local<()>
pub fn original(&self) -> Option<Local<()>>
pub fn try_as_token(&self) -> Result<Token, Bound>
pub fn as_original_token(&self) -> Option<Local<&Token2>>
pub fn into_original_token(self) -> Option<Local<Token2>>
pub fn original_str<'s>( &self, original: &'s str, ) -> Result<&'s str, OriginalError>
pub fn test_token(lt: Local<Token2>) -> TextToken
pub fn test_new( token: Token2, local: Local<()>, original: Option<Local<()>>, ) -> TextToken
Trait Implementations§
source§impl Ord for TextToken
impl Ord for TextToken
source§impl PartialOrd for TextToken
impl PartialOrd for TextToken
impl Copy for TextToken
impl Eq for TextToken
impl StructuralPartialEq for TextToken
Auto Trait Implementations§
impl Freeze for TextToken
impl RefUnwindSafe for TextToken
impl Send for TextToken
impl Sync for TextToken
impl Unpin for TextToken
impl UnwindSafe for TextToken
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)