pub enum JumpOffset {
Zero,
Injected(Value),
}
Expand description
A value that is specifically for jump offset use.
Slightly more specialized than Value
since the only non-computed value is if elided.
Variants§
Trait Implementations§
Source§impl Clone for JumpOffset
impl Clone for JumpOffset
Source§fn clone(&self) -> JumpOffset
fn clone(&self) -> JumpOffset
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 Debug for JumpOffset
impl Debug for JumpOffset
Source§impl From<&Expr> for JumpOffset
impl From<&Expr> for JumpOffset
Source§fn from(expr: &Expr) -> JumpOffset
fn from(expr: &Expr) -> JumpOffset
Converts to this type from the input type.
Source§impl From<Expr> for JumpOffset
impl From<Expr> for JumpOffset
Source§fn from(expr: Expr) -> JumpOffset
fn from(expr: Expr) -> JumpOffset
Converts to this type from the input type.
Source§impl From<Value> for JumpOffset
impl From<Value> for JumpOffset
Source§fn from(val: Value) -> JumpOffset
fn from(val: Value) -> JumpOffset
Converts to this type from the input type.
impl Copy for JumpOffset
Auto Trait Implementations§
impl Freeze for JumpOffset
impl RefUnwindSafe for JumpOffset
impl Send for JumpOffset
impl Sync for JumpOffset
impl Unpin for JumpOffset
impl UnwindSafe for JumpOffset
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