pub struct Fragment {
pub concept: Concept,
pub key: &'static str,
pub variant: Variant,
pub depth: Depth,
pub locale: &'static str,
pub audience: Option<Audience>,
pub title: Option<&'static str>,
pub body: &'static str,
}Expand description
A unit of content, addressed by (concept, key, variant, locale).
Fields§
§concept: ConceptConcept this fragment belongs to.
key: &'static strSub-topic within the concept, e.g. "no-word-splitting".
variant: VariantHow this fragment renders its idea.
depth: DepthSummary fragments always show; Reference only at reference depth.
locale: &'static strBCP-47 locale tag. English ("en") is the canonical-complete base.
audience: Option<Audience>None = shared (default); Some(_) = audience-specific divergence.
title: Option<&'static str>Optional section heading for reference rendering (e.g. "Quoting").
None for inline fragments (the Foundations spine renders under its
concept header instead). Used by render_syntax_reference.
body: &'static strMarkdown body.
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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