pub enum TargetNode<'a, E> {
Label(Cow<'a, str>),
Node(&'a str),
Expr(E),
}Expand description
Where a direct branch or call goes.
Variants§
Label(Cow<'a, str>)
An instruction-local label.
Node(&'a str)
A name the producer never resolved. Cannot occur in a consumer-form AST; the passes reject it.
Expr(E)
An address.
Trait Implementations§
Source§impl<'a, E: Clone> Clone for TargetNode<'a, E>
impl<'a, E: Clone> Clone for TargetNode<'a, E>
Source§fn clone(&self) -> TargetNode<'a, E>
fn clone(&self) -> TargetNode<'a, E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, E: Debug> Debug for TargetNode<'a, E>
impl<'a, E: Debug> Debug for TargetNode<'a, E>
Source§impl<'a, S> From<&'a LabelOrNode<S>> for TargetNode<'a, &'a Expression<S>>
impl<'a, S> From<&'a LabelOrNode<S>> for TargetNode<'a, &'a Expression<S>>
Source§fn from(target: &'a LabelOrNode<S>) -> Self
fn from(target: &'a LabelOrNode<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, E> Freeze for TargetNode<'a, E>where
E: Freeze,
impl<'a, E> RefUnwindSafe for TargetNode<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for TargetNode<'a, E>where
E: Send,
impl<'a, E> Sync for TargetNode<'a, E>where
E: Sync,
impl<'a, E> Unpin for TargetNode<'a, E>where
E: Unpin,
impl<'a, E> UnsafeUnpin for TargetNode<'a, E>where
E: UnsafeUnpin,
impl<'a, E> UnwindSafe for TargetNode<'a, E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more