[−][src]Struct rustc_ap_rustc_expand::base::DummyResult
Fill-in macro expansion result, to allow compilation to continue after hitting errors.
Methods
impl DummyResult
[src]
pub fn any(span: Span) -> Box<dyn MacResult + 'static>
[src]
Creates a default MacResult that can be anything.
Use this as a return value after hitting any errors and
calling span_err
.
pub fn any_valid(span: Span) -> Box<dyn MacResult + 'static>
[src]
Same as any
, but must be a valid fragment, not error.
pub fn raw_expr(sp: Span, is_error: bool) -> P<Expr>
[src]
A plain dummy expression.
pub fn raw_pat(sp: Span) -> Pat
[src]
A plain dummy pattern.
pub fn raw_ty(sp: Span, is_error: bool) -> P<Ty>
[src]
A plain dummy type.
Trait Implementations
impl Clone for DummyResult
[src]
fn clone(&self) -> DummyResult
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DummyResult
[src]
impl MacResult for DummyResult
[src]
fn make_expr(self: Box<DummyResult>) -> Option<P<Expr>>
[src]
fn make_pat(self: Box<DummyResult>) -> Option<P<Pat>>
[src]
fn make_items(self: Box<DummyResult>) -> Option<SmallVec<[P<Item>; 1]>>
[src]
fn make_impl_items(
self: Box<DummyResult>
) -> Option<SmallVec<[P<AssocItem>; 1]>>
[src]
self: Box<DummyResult>
) -> Option<SmallVec<[P<AssocItem>; 1]>>
fn make_trait_items(
self: Box<DummyResult>
) -> Option<SmallVec<[P<AssocItem>; 1]>>
[src]
self: Box<DummyResult>
) -> Option<SmallVec<[P<AssocItem>; 1]>>
fn make_foreign_items(self: Box<Self>) -> Option<SmallVec<[P<ForeignItem>; 1]>>
[src]
fn make_stmts(self: Box<DummyResult>) -> Option<SmallVec<[Stmt; 1]>>
[src]
fn make_ty(self: Box<DummyResult>) -> Option<P<Ty>>
[src]
fn make_arms(self: Box<DummyResult>) -> Option<SmallVec<[Arm; 1]>>
[src]
fn make_fields(self: Box<DummyResult>) -> Option<SmallVec<[Field; 1]>>
[src]
fn make_field_patterns(
self: Box<DummyResult>
) -> Option<SmallVec<[FieldPat; 1]>>
[src]
self: Box<DummyResult>
) -> Option<SmallVec<[FieldPat; 1]>>
fn make_generic_params(
self: Box<DummyResult>
) -> Option<SmallVec<[GenericParam; 1]>>
[src]
self: Box<DummyResult>
) -> Option<SmallVec<[GenericParam; 1]>>
fn make_params(self: Box<DummyResult>) -> Option<SmallVec<[Param; 1]>>
[src]
fn make_struct_fields(
self: Box<DummyResult>
) -> Option<SmallVec<[StructField; 1]>>
[src]
self: Box<DummyResult>
) -> Option<SmallVec<[StructField; 1]>>
fn make_variants(self: Box<DummyResult>) -> Option<SmallVec<[Variant; 1]>>
[src]
Auto Trait Implementations
impl RefUnwindSafe for DummyResult
impl !Send for DummyResult
impl !Sync for DummyResult
impl Unpin for DummyResult
impl UnwindSafe for DummyResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeResult<T> for T
[src]
type Error = !
fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T
[src]
fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,