pub enum GraftContent {
Inline(String),
Blob(String),
Reference,
}Expand description
How a grafted item’s content is carried into the working set.
The graft is by COW reference — the origin chain entry is never removed.
Small text rides inline; large text is referenced by its content-addressed
blob hash (load via ArtifactStore);
a chunk whose text was not retained in this view is a bare reference to be
recovered from the chain.
Variants§
Inline(String)
Inline chunk text (small).
Blob(String)
RVF content-addressed blob hash (large); load via the artifact store.
Reference
Indexed but text not retained here; recover from the origin chain.
Trait Implementations§
Source§impl Clone for GraftContent
impl Clone for GraftContent
Source§impl Debug for GraftContent
impl Debug for GraftContent
impl Eq for GraftContent
Source§impl PartialEq for GraftContent
impl PartialEq for GraftContent
impl StructuralPartialEq for GraftContent
Auto Trait Implementations§
impl Freeze for GraftContent
impl RefUnwindSafe for GraftContent
impl Send for GraftContent
impl Sync for GraftContent
impl Unpin for GraftContent
impl UnsafeUnpin for GraftContent
impl UnwindSafe for GraftContent
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more