pub struct OwnershipLayoutResult {
layout: OwnershipLayout,
param: bool,
requirement: bool,
owned: bool,
}
Fields§
§layout: OwnershipLayout
§param: bool
§requirement: bool
§owned: bool
Implementations§
source§impl OwnershipLayoutResult
impl OwnershipLayoutResult
pub fn new() -> Self
pub fn layout(&self) -> &OwnershipLayout
pub fn layout_mut(&mut self) -> &mut OwnershipLayout
pub fn get_param(&self) -> bool
pub fn set_param(&mut self, p: bool)
pub fn is_param_true(&self) -> bool
pub fn get_requirement(&self) -> bool
pub fn set_requirement(&mut self, r: bool)
pub fn is_requirement_true(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn is_owned(&self) -> bool
pub fn set_owned(&mut self, o: bool)
pub fn update_from_default_ownership_visitor<'tcx, 'a>( &mut self, default_ownership: &mut DefaultOwnership<'tcx, 'a>, )
Trait Implementations§
source§impl Clone for OwnershipLayoutResult
impl Clone for OwnershipLayoutResult
source§fn clone(&self) -> OwnershipLayoutResult
fn clone(&self) -> OwnershipLayoutResult
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 moreAuto Trait Implementations§
impl Freeze for OwnershipLayoutResult
impl RefUnwindSafe for OwnershipLayoutResult
impl Send for OwnershipLayoutResult
impl Sync for OwnershipLayoutResult
impl Unpin for OwnershipLayoutResult
impl UnwindSafe for OwnershipLayoutResult
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
)