Enum rustc_resolve::late::PatternSource
source · pub(crate) enum PatternSource {
Match,
Let,
For,
FnParam,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for PatternSource
impl Clone for PatternSource
source§fn clone(&self) -> PatternSource
fn clone(&self) -> PatternSource
Returns a copy 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 moresource§impl Debug for PatternSource
impl Debug for PatternSource
source§impl IntoDiagnosticArg for PatternSource
impl IntoDiagnosticArg for PatternSource
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>
source§impl PartialEq<PatternSource> for PatternSource
impl PartialEq<PatternSource> for PatternSource
source§fn eq(&self, other: &PatternSource) -> bool
fn eq(&self, other: &PatternSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PatternSource
impl Eq for PatternSource
impl StructuralEq for PatternSource
impl StructuralPartialEq for PatternSource
Auto Trait Implementations§
impl RefUnwindSafe for PatternSource
impl Send for PatternSource
impl Sync for PatternSource
impl Unpin for PatternSource
impl UnwindSafe for PatternSource
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
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: 1 byte
Size for each variant:
Match
: 0 bytesLet
: 0 bytesFor
: 0 bytesFnParam
: 0 bytes