Struct rustc_trait_selection::traits::error_reporting::on_unimplemented::OnUnimplementedDirective
source · pub struct OnUnimplementedDirective {
pub condition: Option<MetaItem>,
pub subcommands: Vec<OnUnimplementedDirective>,
pub message: Option<OnUnimplementedFormatString>,
pub label: Option<OnUnimplementedFormatString>,
pub note: Option<OnUnimplementedFormatString>,
pub parent_label: Option<OnUnimplementedFormatString>,
pub append_const_msg: Option<AppendConstMessage>,
}
Fields§
§condition: Option<MetaItem>
§subcommands: Vec<OnUnimplementedDirective>
§message: Option<OnUnimplementedFormatString>
§label: Option<OnUnimplementedFormatString>
§note: Option<OnUnimplementedFormatString>
§parent_label: Option<OnUnimplementedFormatString>
§append_const_msg: Option<AppendConstMessage>
Implementations§
source§impl<'tcx> OnUnimplementedDirective
impl<'tcx> OnUnimplementedDirective
fn parse( tcx: TyCtxt<'tcx>, item_def_id: DefId, items: &[NestedMetaItem], span: Span, is_root: bool, is_diagnostic_namespace_variant: bool ) -> Result<Option<Self>, ErrorGuaranteed>
pub fn of_item( tcx: TyCtxt<'tcx>, item_def_id: DefId ) -> Result<Option<Self>, ErrorGuaranteed>
pub fn evaluate( &self, tcx: TyCtxt<'tcx>, trait_ref: TraitRef<'tcx>, options: &[(Symbol, Option<String>)] ) -> OnUnimplementedNote
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OnUnimplementedDirective
impl !Send for OnUnimplementedDirective
impl !Sync for OnUnimplementedDirective
impl Unpin for OnUnimplementedDirective
impl !UnwindSafe for OnUnimplementedDirective
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: 128 bytes