Enum rustc_ap_rustc_ast::ast::BorrowKind [−][src]
pub enum BorrowKind { Ref, Raw, }
Expand description
The kind of borrow in an AddrOf
expression,
e.g., &place
or &raw const place
.
Variants
A normal borrow, &$expr
or &mut $expr
.
The resulting type is either &'a T
or &'a mut T
where T = typeof($expr)
and 'a
is some lifetime.
A raw borrow, &raw const $expr
or &raw mut $expr
.
The resulting type is either *const T
or *mut T
where T = typeof($expr)
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BorrowKind
impl Send for BorrowKind
impl Sync for BorrowKind
impl Unpin for BorrowKind
impl UnwindSafe for BorrowKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V