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
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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: 144 bytes