pub struct OwnershipState {
pub valid_variables: HashMap<VariableId, VariableState>,
pub active_borrows: Vec<BorrowInfo>,
}Fields§
§valid_variables: HashMap<VariableId, VariableState>§active_borrows: Vec<BorrowInfo>Implementations§
Source§impl OwnershipState
impl OwnershipState
pub fn new() -> Self
pub fn apply_event(&mut self, event: &Event)
pub fn is_valid(&self, var_id: VariableId) -> bool
pub fn is_moved(&self, var_id: VariableId) -> bool
Trait Implementations§
Source§impl Clone for OwnershipState
impl Clone for OwnershipState
Source§fn clone(&self) -> OwnershipState
fn clone(&self) -> OwnershipState
Returns a duplicate 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 OwnershipState
impl Debug for OwnershipState
Source§impl<'de> Deserialize<'de> for OwnershipState
impl<'de> Deserialize<'de> for OwnershipState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OwnershipState
impl RefUnwindSafe for OwnershipState
impl Send for OwnershipState
impl Sync for OwnershipState
impl Unpin for OwnershipState
impl UnsafeUnpin for OwnershipState
impl UnwindSafe for OwnershipState
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