[−][src]Enum rustc_hir::LocalSource
Hints at the original code for a let statement.
Variants
A match _ { .. }.
A desugared for _ in _ { .. } loop.
When lowering async functions, we create locals within the async move so that
all parameters are dropped after the future is polled.
ⓘThis example is not tested
async fn foo(<pattern> @ x: Type) { async move { let <pattern> = x; } }
A desugared <expr>.await.
AssignDesugar(Span)A desugared expr = expr, where the LHS is a tuple, struct or array.
The span is that of the = sign.
Trait Implementations
impl Clone for LocalSource[src]
pub fn clone(&self) -> LocalSource[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for LocalSource[src]
impl Debug for LocalSource[src]
impl<__E: Encoder> Encodable<__E> for LocalSource[src]
impl<__CTX> HashStable<__CTX> for LocalSource where
__CTX: HashStableContext, [src]
__CTX: HashStableContext,
pub fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)[src]
Auto Trait Implementations
impl RefUnwindSafe for LocalSource
impl !Send for LocalSource
impl !Sync for LocalSource
impl Unpin for LocalSource
impl UnwindSafe for LocalSource
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,
pub fn borrow_mut(&mut self) -> &mut 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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,