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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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