Struct rustc_expand::base::DummyResult [−][src]
Expand description
Fill-in macro expansion result, to allow compilation to continue after hitting errors.
Fields
is_error: boolspan: SpanImplementations
impl DummyResult[src]
impl DummyResult[src]pub fn any(span: Span) -> Box<dyn MacResult + 'static>[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.
Trait Implementations
impl Clone for DummyResult[src]
impl Clone for DummyResult[src]fn clone(&self) -> DummyResult[src]
fn clone(&self) -> DummyResult[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl MacResult for DummyResult[src]
impl MacResult for DummyResult[src]fn make_items(self: Box<DummyResult>) -> Option<SmallVec<[P<Item>; 1]>>[src]
fn make_items(self: Box<DummyResult>) -> Option<SmallVec<[P<Item>; 1]>>[src]Creates zero or more items.
fn make_impl_items(
self: Box<DummyResult>
) -> Option<SmallVec<[P<AssocItem>; 1]>>[src]
fn make_impl_items(
self: Box<DummyResult>
) -> Option<SmallVec<[P<AssocItem>; 1]>>[src]Creates zero or more impl items.
fn make_trait_items(
self: Box<DummyResult>
) -> Option<SmallVec<[P<AssocItem>; 1]>>[src]
fn make_trait_items(
self: Box<DummyResult>
) -> Option<SmallVec<[P<AssocItem>; 1]>>[src]Creates zero or more trait items.
fn make_foreign_items(self: Box<Self>) -> Option<SmallVec<[P<ForeignItem>; 1]>>[src]
fn make_foreign_items(self: Box<Self>) -> Option<SmallVec<[P<ForeignItem>; 1]>>[src]Creates zero or more items in an extern {} block
fn make_stmts(self: Box<DummyResult>) -> Option<SmallVec<[Stmt; 1]>>[src]
fn make_stmts(self: Box<DummyResult>) -> Option<SmallVec<[Stmt; 1]>>[src]Creates zero or more statements. Read more
fn make_ty(self: Box<DummyResult>) -> Option<P<Ty>>[src]
fn make_arms(self: Box<DummyResult>) -> Option<SmallVec<[Arm; 1]>>[src]
fn make_expr_fields(self: Box<DummyResult>) -> Option<SmallVec<[ExprField; 1]>>[src]
fn make_pat_fields(self: Box<DummyResult>) -> Option<SmallVec<[PatField; 1]>>[src]
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_field_defs(self: Box<DummyResult>) -> Option<SmallVec<[FieldDef; 1]>>[src]
fn make_variants(self: Box<DummyResult>) -> Option<SmallVec<[Variant; 1]>>[src]
impl Copy for DummyResult[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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more