pub enum AssocTyParenthesesSub {
Empty {
parentheses_span: Span,
},
NotEmpty {
open_param: Span,
close_param: Span,
},
}
Variants§
Trait Implementations§
source§impl AddToDiagnostic for AssocTyParenthesesSub
impl AddToDiagnostic for AssocTyParenthesesSub
source§fn add_to_diagnostic_with<__F>(self, diag: &mut Diagnostic, f: __F)where
__F: Fn(&mut Diagnostic, SubdiagnosticMessage) -> SubdiagnosticMessage,
fn add_to_diagnostic_with<__F>(self, diag: &mut Diagnostic, f: __F)where
__F: Fn(&mut Diagnostic, SubdiagnosticMessage) -> SubdiagnosticMessage,
Add a subdiagnostic to an existing diagnostic where
f
is invoked on every message used
(to optionally perform eager translation). Read moresource§fn add_to_diagnostic(self, diag: &mut Diagnostic)
fn add_to_diagnostic(self, diag: &mut Diagnostic)
Add a subdiagnostic to an existing diagnostic.
source§impl Clone for AssocTyParenthesesSub
impl Clone for AssocTyParenthesesSub
source§fn clone(&self) -> AssocTyParenthesesSub
fn clone(&self) -> AssocTyParenthesesSub
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 moreimpl Copy for AssocTyParenthesesSub
Auto Trait Implementations§
impl RefUnwindSafe for AssocTyParenthesesSub
impl !Send for AssocTyParenthesesSub
impl !Sync for AssocTyParenthesesSub
impl Unpin for AssocTyParenthesesSub
impl UnwindSafe for AssocTyParenthesesSub
Blanket Implementations§
source§impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut T
fn allocate_from_iter<'a>(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T] ⓘ
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: 20 bytes
Size for each variant:
Empty
: 8 bytesNotEmpty
: 16 bytes