pub struct Revision { /* private fields */ }Expand description
A numbered, immutable snapshot of an environment: the placement-free manifest, the module manifests it lists and its vars, with a digest of all three. Nothing in the API changes a revision once committed; the type has no setters, and the store refuses an update.
Implementations§
Source§impl Revision
impl Revision
Sourcepub fn environment(&self) -> &EnvironmentId
pub fn environment(&self) -> &EnvironmentId
The environment it is a revision of.
Sourcepub fn manifest(&self) -> &EnvManifest
pub fn manifest(&self) -> &EnvManifest
The environment manifest, without placement.
Sourcepub fn manifest_toml(&self) -> &str
pub fn manifest_toml(&self) -> &str
The manifest as stored (env.toml text).
Trait Implementations§
impl Eq for Revision
impl StructuralPartialEq for Revision
Auto Trait Implementations§
impl Forget for Revision
impl Freeze for Revision
impl RefUnwindSafe for Revision
impl Send for Revision
impl Sync for Revision
impl Unpin for Revision
impl UnsafeUnpin for Revision
impl UnwindSafe for Revision
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.