Skip to main content

ProcTemplateComponent

Struct ProcTemplateComponent 

Source
pub struct ProcTemplateComponent {
Show 14 fields pub template_component: TemplateComponent, pub template_index: Option<usize>, pub value: String, pub prefix: Option<String>, pub suffix: Option<String>, pub url: Option<String>, pub ref_type: Option<String>, pub config: Option<Arc<Config>>, pub bibliography_config: Option<Arc<BibliographyConfig>>, pub item_language: Option<String>, pub quote_marks: QuoteMarks, pub sentence_initial: bool, pub pre_formatted: bool, pub label_only: bool,
}
Expand description

A processed template component with its rendered value.

Fields§

§template_component: TemplateComponent

The original template component (for rendering instructions).

§template_index: Option<usize>

The 0-based source index in the active layout template, when requested.

§value: String

The processed values.

§prefix: Option<String>

Optional prefix from value extraction.

§suffix: Option<String>

Optional suffix from value extraction.

§url: Option<String>

Optional URL for hyperlinking.

§ref_type: Option<String>

Reference type for type-specific overrides.

§config: Option<Arc<Config>>

Optional global configuration.

§bibliography_config: Option<Arc<BibliographyConfig>>

Optional bibliography-only configuration.

§item_language: Option<String>

Effective language for this rendered component.

§quote_marks: QuoteMarks

Locale-resolved quote mark characters, threaded from the active Locale’s GrammarOptions so quote/wrap: quotes render the style’s actual quotation convention instead of a hardcoded default.

§sentence_initial: bool

Whether this component begins a sentence according to processor-owned render context.

§pre_formatted: bool

Whether the value is already pre-formatted (e.g. from a List or substitution).

§label_only: bool

True when this component’s rendered text is only a bibliography numeric label (update_label_mode’s synthetic [label, following] group with an empty following, e.g. no author). Bibliography assembly must still write the label text, but must not treat it as real preceding content for the next component’s separator decision — the label attaches directly to whatever content actually opens the entry, exactly as if the label were not there.

Trait Implementations§

Source§

impl Clone for ProcTemplateComponent

Source§

fn clone(&self) -> ProcTemplateComponent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProcTemplateComponent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ProcTemplateComponent

Source§

fn default() -> ProcTemplateComponent

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ProcTemplateComponent

Source§

fn eq(&self, other: &ProcTemplateComponent) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ProcTemplateComponent

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.