pub struct Candidate {
pub Ident: String,
pub StmtIndex: usize,
pub Init: Expr,
}Expand description
A let binding that may be inlinable.
Fields§
§Ident: StringThe identifier name (e.g. "URI").
StmtIndex: usizeIndex of this Stmt::Local within block.stmts.
Init: ExprCloned copy of the initialiser expression.
Stored here so that we can borrow the expression independently while
mutating block.stmts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl !Send for Candidate
impl !Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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