pub enum Terminator<'c> {
Branch(&'c Block<'c>),
Return(&'c Value<'c>),
None,
}
Variants§
Implementations§
Trait Implementations§
Source§impl<'c> Clone for Terminator<'c>
impl<'c> Clone for Terminator<'c>
Source§fn clone(&self) -> Terminator<'c>
fn clone(&self) -> Terminator<'c>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'c> Display for Terminator<'c>
impl<'c> Display for Terminator<'c>
impl<'c> Copy for Terminator<'c>
Auto Trait Implementations§
impl<'c> Freeze for Terminator<'c>
impl<'c> !RefUnwindSafe for Terminator<'c>
impl<'c> !Send for Terminator<'c>
impl<'c> !Sync for Terminator<'c>
impl<'c> Unpin for Terminator<'c>
impl<'c> !UnwindSafe for Terminator<'c>
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