pub struct PlaceContext {
is_mut: bool,
}
Expand description
Information about a place’s usage.
Fields§
§is_mut: bool
Whether the access is mutable or not. Keep this private so we can increment the type in a backward compatible manner.
Implementations§
Source§impl PlaceContext
impl PlaceContext
const MUTATING: Self = _
const NON_MUTATING: Self = _
const NON_USE: Self = _
pub fn is_mutating(&self) -> bool
Trait Implementations§
Source§impl Clone for PlaceContext
impl Clone for PlaceContext
Source§fn clone(&self) -> PlaceContext
fn clone(&self) -> PlaceContext
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 PlaceContext
impl Debug for PlaceContext
Source§impl Hash for PlaceContext
impl Hash for PlaceContext
Source§impl PartialEq for PlaceContext
impl PartialEq for PlaceContext
impl Copy for PlaceContext
impl Eq for PlaceContext
impl StructuralPartialEq for PlaceContext
Auto Trait Implementations§
impl Freeze for PlaceContext
impl RefUnwindSafe for PlaceContext
impl Send for PlaceContext
impl Sync for PlaceContext
impl Unpin for PlaceContext
impl UnwindSafe for PlaceContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte