pub struct Provenance {}
Expand description
Provenance
A full model of provenance is given by formalisms such as “Stacked Borrows” or “Tree Borrows.”
None of these models are finalized, nor has Rust committed to them. Rust’s recent RFC on provenance simply details that there is some concept of provenance.
Our model here, likewise, simply declares Provenance
as an
abstract type.
MiniRust currently declares a pointer has an Option<Provenance>
;
the model here gives provenance a special “null” value instead
of using an option.
More reading for reference:
Implementations§
Source§impl Provenance
impl Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnwindSafe for Provenance
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