pub struct Section {
pub range: Range,
pub text: String,
pub origin: SectionOrigin,
pub pinned: Vec<String>,
}Expand description
One committed piece of the block: the log range it covers and the text standing in for it. Sections tile their span of the log without gaps or overlap, and once committed a section never moves or changes range — the block only grows by appending.
Fields§
§range: RangeThe covered log range.
text: StringThe dense text standing in for the range.
origin: SectionOriginWho wrote text.
pinned: Vec<String>The skills whose whole bodies this section carries verbatim — the skill pin. Empty for digests. The pin survives the model fill and consolidation: a body may move sections, but it never drops out of the block.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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
impl Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Forget for Section
impl Freeze for Section
impl Move for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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