pub struct ConstOperand<'tcx> {
pub span: Span,
pub user_ty: Option<UserTypeAnnotationIndex>,
pub const_: Const<'tcx>,
}Fields§
§span: Span§user_ty: Option<UserTypeAnnotationIndex>Optional user-given type: for something like
collect::<Vec<_>>, this would be present and would
indicate that Vec<_> was explicitly specified.
Needed for NLL to impose user-given type constraints.
const_: Const<'tcx>Auto Trait Implementations§
impl<'tcx> Freeze for ConstOperand<'tcx>
impl<'tcx> !RefUnwindSafe for ConstOperand<'tcx>
impl<'tcx> Send for ConstOperand<'tcx>
impl<'tcx> Sync for ConstOperand<'tcx>
impl<'tcx> Unpin for ConstOperand<'tcx>
impl<'tcx> !UnwindSafe for ConstOperand<'tcx>
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