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<Option<Symbol>>,
}
Fields§
§condition: Option<MetaItem>
§subcommands: Vec<OnUnimplementedDirective>
§message: Option<OnUnimplementedFormatString>
§label: Option<OnUnimplementedFormatString>
§note: Option<OnUnimplementedFormatString>
§parent_label: Option<OnUnimplementedFormatString>
§append_const_msg: Option<Option<Symbol>>
Implementations§
source§impl<'tcx> OnUnimplementedDirective
impl<'tcx> OnUnimplementedDirective
fn parse(
tcx: TyCtxt<'tcx>,
item_def_id: DefId,
items: &[NestedMetaItem],
span: Span,
is_root: bool
) -> Result<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§
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: 120 bytes