TokenAndSpan

Struct TokenAndSpan 

Source
pub struct TokenAndSpan {
    pub token: Token,
    pub had_line_break: bool,
    pub span: Span,
}
Available on crate features __ecma and __parser only.

Fields§

§token: Token§had_line_break: bool

Had a line break before this token?

§span: Span

Trait Implementations§

Source§

impl Clone for TokenAndSpan

Source§

fn clone(&self) -> TokenAndSpan

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TokenAndSpan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl NextTokenAndSpan for TokenAndSpan

Source§

impl PartialEq for TokenAndSpan

Source§

fn eq(&self, other: &TokenAndSpan) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Spanned for TokenAndSpan

Source§

fn span(&self) -> Span

Get span of self.
Source§

fn span_lo(&self) -> BytePos

Source§

fn span_hi(&self) -> BytePos

Source§

impl TokenAndSpan for TokenAndSpan

Source§

type Token = Token

Source§

fn new(token: Token, span: Span, had_line_break: bool) -> TokenAndSpan

Source§

fn token(&self) -> &Token

Source§

fn take_token(self) -> Token

Source§

fn had_line_break(&self) -> bool

Source§

fn span(&self) -> Span

Source§

impl<'a, I> TokenFactory<'a, TokenAndSpan, I> for Token
where I: Tokens<TokenAndSpan>,

Source§

const ABSTRACT: Token

Source§

const ACCESSOR: Token

Source§

const ANY: Token

Source§

const ARROW: Token = Self::Arrow

Source§

const AS: Token

Source§

const ASSERT: Token

Source§

const ASSERTS: Token

Source§

const ASYNC: Token

Source§

const AT: Token = Self::At

Source§

const AWAIT: Token

Source§

const BACKQUOTE: Token = Self::BackQuote

Source§

const BANG: Token = Self::Bang

Source§

const BIGINT: Token

Source§

const BIT_AND: Token

Source§

const BIT_AND_EQ: Token

Source§

const BIT_OR: Token

Source§

const BIT_OR_EQ: Token

Source§

const BOOLEAN: Token

Source§

const BREAK: Token

Source§

const CASE: Token

Source§

const CATCH: Token

Source§

const CLASS: Token

Source§

const COLON: Token = Self::Colon

Source§

const COMMA: Token = Self::Comma

Source§

const CONST: Token

Source§

const CONTINUE: Token

Source§

const DEBUGGER: Token

Source§

const DECLARE: Token

Source§

const DEFAULT: Token

Source§

const DELETE: Token

Source§

const DIV: Token

Source§

const DIV_EQ: Token

Source§

const DO: Token

Source§

const DOLLAR_LBRACE: Token = Self::DollarLBrace

Source§

const DOT: Token = Self::Dot

Source§

const DOTDOTDOT: Token = Self::DotDotDot

Source§

const ELSE: Token

Source§

const ENUM: Token

Source§

const EOF: Token = Token::Eof

Source§

const EQUAL: Token

Source§

const EXP: Token

Source§

const EXPORT: Token

Source§

const EXP_EQ: Token

Source§

const EXTENDS: Token

Source§

const FALSE: Token

Source§

const FINALLY: Token

Source§

const FOR: Token

Source§

const FROM: Token

Source§

const FUNCTION: Token

Source§

const GET: Token

Source§

const GLOBAL: Token

Source§

const GREATER: Token

Source§

const GREATER_EQ: Token

Source§

const HASH: Token = Self::Hash

Source§

const IF: Token

Source§

const IMPLEMENTS: Token

Source§

const IMPORT: Token

Source§

const IN: Token

Source§

const INFER: Token

Source§

const INSTANCEOF: Token

Source§

const INTERFACE: Token

Source§

const INTRINSIC: Token

Source§

const IS: Token

Source§

const JSX_TAG_END: Token = Self::JSXTagEnd

Source§

const JSX_TAG_START: Token = Self::JSXTagStart

Source§

const KEYOF: Token

Source§

const LBRACE: Token = Self::LBrace

Source§

const LBRACKET: Token = Self::LBracket

Source§

const LESS: Token

Source§

const LESS_EQ: Token

Source§

const LET: Token

Source§

const LOGICAL_AND: Token

Source§

const LOGICAL_AND_EQ: Token

Source§

const LOGICAL_OR: Token

Source§

const LOGICAL_OR_EQ: Token

Source§

const LPAREN: Token = Self::LParen

Source§

const LSHIFT: Token

Source§

const LSHIFT_EQ: Token

Source§

const MINUS: Token

Source§

const MINUS_MINUS: Token = Self::MinusMinus

Source§

const MOD: Token

Source§

const MOD_EQ: Token

Source§

const MUL: Token

Source§

const MUL_EQ: Token

Source§

const NAMESPACE: Token

Source§

const NEVER: Token

Source§

const NEW: Token

Source§

const NULL: Token

Source§

const NULLISH_ASSIGN: Token

Source§

const NULLISH_COALESCING: Token

Source§

const NUMBER: Token

Source§

const OBJECT: Token

Source§

const OF: Token

Source§

const PACKAGE: Token

Source§

const PLUS: Token

Source§

const PLUS_PLUS: Token = Self::PlusPlus

Source§

const PRIVATE: Token

Source§

const PROTECTED: Token

Source§

const PUBLIC: Token

Source§

const QUESTION: Token = Token::QuestionMark

Source§

const RBRACE: Token = Self::RBrace

Source§

const RBRACKET: Token = Self::RBracket

Source§

const READONLY: Token

Source§

const REQUIRE: Token

Source§

const RETURN: Token

Source§

const RPAREN: Token = Self::RParen

Source§

const RSHIFT: Token

Source§

const RSHIFT_EQ: Token

Source§

const SATISFIES: Token

Source§

const SEMI: Token = Self::Semi

Source§

const SET: Token

Source§

const STATIC: Token

Source§

const STRING: Token

Source§

const SUPER: Token

Source§

const SWITCH: Token

Source§

const SYMBOL: Token

Source§

const TARGET: Token

Source§

const THIS: Token

Source§

const THROW: Token

Source§

const TILDE: Token = Self::Tilde

Source§

const TRUE: Token

Source§

const TRY: Token

Source§

const TYPE: Token

Source§

const TYPEOF: Token

Source§

const UNDEFINED: Token

Source§

const UNIQUE: Token

Source§

const UNKNOWN: Token

Source§

const USING: Token

Source§

const VAR: Token

Source§

const VOID: Token

Source§

const WHILE: Token

Source§

const WITH: Token

Source§

const YIELD: Token

Source§

const ZERO_FILL_RSHIFT: Token

Source§

const ZERO_FILL_RSHIFT_EQ: Token

Source§

type Buffer = Buffer<I>

Source§

type Lexer = Lexer<'a>

Source§

fn jsx_name(name: &'a str, lexer: &mut Lexer<'a>) -> Token

Source§

fn is_jsx_name(&self) -> bool

Source§

fn take_jsx_name( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> Atom

Source§

fn str(value: Atom, raw: Atom, _: &mut Lexer<'a>) -> Token

Source§

fn template(cooked: Result<Atom, Error>, raw: Atom, _: &mut Lexer<'a>) -> Token

Source§

fn regexp(content: Atom, flags: Atom, _: &mut Lexer<'a>) -> Token

Source§

fn num(value: f64, raw: Atom, _: &mut Lexer<'a>) -> Token

Source§

fn bigint(value: Box<BigInt>, raw: Atom, _: &mut Lexer<'a>) -> Token

Source§

fn unknown_ident(value: Atom, _: &mut Lexer<'a>) -> Token

Source§

fn is_word(&self) -> bool

Source§

fn is_reserved(&self, ctx: Context) -> bool

Source§

fn into_atom(self, _: &mut Lexer<'a>) -> Option<Atom>

Source§

fn is_error(&self) -> bool

Source§

fn take_error( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> Error

Source§

fn is_str(&self) -> bool

Source§

fn is_str_raw_content( &self, content: &str, _: &<Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> bool

Source§

fn take_str( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> (Atom, Atom)

Source§

fn is_num(&self) -> bool

Source§

fn take_num( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> (f64, Atom)

Source§

fn is_bigint(&self) -> bool

Source§

fn take_bigint( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> (Box<BigInt>, Atom)

Source§

fn take_word( self, _: &<Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> Option<Atom>

Source§

fn is_unknown_ident(&self) -> bool

Source§

fn take_unknown_ident( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> Atom

Source§

fn take_unknown_ident_ref<'b>( &'b self, _: &'b <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> &'b Atom

Source§

fn is_keyword(&self) -> bool

Source§

fn is_known_ident(&self) -> bool

Source§

fn take_known_ident(&self) -> Atom

Source§

fn is_regexp(&self) -> bool

Source§

fn is_template(&self) -> bool

Source§

fn take_template( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> (Result<Atom, Error>, Atom)

Source§

fn jsx_text( value: Atom, raw: Atom, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Lexer, ) -> Token

Source§

fn is_jsx_text(&self) -> bool

Source§

fn take_jsx_text( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> (Atom, Atom)

Source§

fn starts_expr(&self) -> bool

Source§

fn to_string( &self, _: &<Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> String

Source§

fn is_bin_op(&self) -> bool

Source§

fn as_assign_op(&self) -> Option<AssignOp>

Source§

fn as_bin_op(&self) -> Option<BinaryOp>

Source§

fn follows_keyword_let(&self) -> bool

Source§

fn is_assign_op(&self) -> bool

Source§

fn take_regexp( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> (Atom, Atom)

Source§

fn shebang( value: Atom, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Lexer, ) -> Token

Source§

fn is_shebang(&self) -> bool

Source§

fn take_shebang( self, _: &mut <Token as TokenFactory<'a, TokenAndSpan, I>>::Buffer, ) -> Atom

Source§

fn is_no_substitution_template_literal(&self) -> bool

Source§

fn is_template_head(&self) -> bool

Source§

fn is_less(&self) -> bool

Source§

fn is_less_eq(&self) -> bool

Source§

fn is_greater(&self) -> bool

Source§

fn is_colon(&self) -> bool

Source§

fn is_comma(&self) -> bool

Source§

fn is_equal(&self) -> bool

Source§

fn is_question(&self) -> bool

Source§

fn is_null(&self) -> bool

Source§

fn is_lshift(&self) -> bool

Source§

fn is_rshift(&self) -> bool

Source§

fn is_rshift_eq(&self) -> bool

Source§

fn is_greater_eq(&self) -> bool

Source§

fn is_true(&self) -> bool

Source§

fn is_false(&self) -> bool

Source§

fn is_enum(&self) -> bool

Source§

fn is_yield(&self) -> bool

Source§

fn is_let(&self) -> bool

Source§

fn is_var(&self) -> bool

Source§

fn is_static(&self) -> bool

Source§

fn is_extends(&self) -> bool

Source§

fn is_implements(&self) -> bool

Source§

fn is_interface(&self) -> bool

Source§

fn is_type(&self) -> bool

Source§

fn is_package(&self) -> bool

Source§

fn is_private(&self) -> bool

Source§

fn is_protected(&self) -> bool

Source§

fn is_public(&self) -> bool

Source§

fn is_readonly(&self) -> bool

Source§

fn is_await(&self) -> bool

Source§

fn is_break(&self) -> bool

Source§

fn is_continue(&self) -> bool

Source§

fn is_arrow(&self) -> bool

Source§

fn is_this(&self) -> bool

Source§

fn is_super(&self) -> bool

Source§

fn is_using(&self) -> bool

Source§

fn is_backquote(&self) -> bool

Source§

fn is_lparen(&self) -> bool

Source§

fn is_rparen(&self) -> bool

Source§

fn is_lbracket(&self) -> bool

Source§

fn is_rbracket(&self) -> bool

Source§

fn is_lbrace(&self) -> bool

Source§

fn is_rbrace(&self) -> bool

Source§

fn is_function(&self) -> bool

Source§

fn is_class(&self) -> bool

Source§

fn is_if(&self) -> bool

Source§

fn is_return(&self) -> bool

Source§

fn is_switch(&self) -> bool

Source§

fn is_throw(&self) -> bool

Source§

fn is_catch(&self) -> bool

Source§

fn is_finally(&self) -> bool

Source§

fn is_try(&self) -> bool

Source§

fn is_with(&self) -> bool

Source§

fn is_while(&self) -> bool

Source§

fn is_new(&self) -> bool

Source§

fn is_ident_ref(&self, ctx: Context) -> bool

Source§

fn is_import(&self) -> bool

Source§

fn is_export(&self) -> bool

Source§

fn is_dot(&self) -> bool

Source§

fn is_do(&self) -> bool

Source§

fn is_for(&self) -> bool

Source§

fn is_from(&self) -> bool

Source§

fn is_dotdotdot(&self) -> bool

Source§

fn is_plus(&self) -> bool

Source§

fn is_minus(&self) -> bool

Source§

fn is_bang(&self) -> bool

Source§

fn is_tilde(&self) -> bool

Source§

fn is_plus_plus(&self) -> bool

Source§

fn is_minus_minus(&self) -> bool

Source§

fn is_delete(&self) -> bool

Source§

fn is_typeof(&self) -> bool

Source§

fn is_of(&self) -> bool

Source§

fn is_void(&self) -> bool

Source§

fn is_hash(&self) -> bool

Source§

fn is_in(&self) -> bool

Source§

fn is_const(&self) -> bool

Source§

fn is_star(&self) -> bool

Source§

fn is_mod(&self) -> bool

Source§

fn is_semi(&self) -> bool

Source§

fn is_slash(&self) -> bool

Source§

fn is_slash_eq(&self) -> bool

Source§

fn is_jsx_tag_start(&self) -> bool

Source§

fn is_jsx_tag_end(&self) -> bool

Source§

fn is_asserts(&self) -> bool

Source§

fn is_is(&self) -> bool

Source§

fn is_as(&self) -> bool

Source§

fn is_satisfies(&self) -> bool

Source§

fn is_instanceof(&self) -> bool

Source§

fn is_async(&self) -> bool

Source§

fn is_case(&self) -> bool

Source§

fn is_default(&self) -> bool

Source§

fn is_debugger(&self) -> bool

Source§

fn is_bit_and(&self) -> bool

Source§

fn is_bit_or(&self) -> bool

Source§

fn is_exp(&self) -> bool

Source§

fn is_eof(&self) -> bool

Source§

impl StructuralPartialEq for TokenAndSpan

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SpanExt for T
where T: Spanned,

Source§

fn is_synthesized(&self) -> bool

Source§

fn starts_on_new_line(&self, format: ListFormat) -> bool

Source§

fn comment_range(&self) -> Span

Gets a custom text range to use when emitting comments.
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> Send for T
where T: ?Sized,

Source§

impl<T> Sync for T
where T: ?Sized,

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes