Skip to main content

RendererResources

Struct RendererResources 

Source
pub struct RendererResources<'a> {
    pub style: &'a Style,
    pub bibliography: &'a Bibliography,
    pub locale: &'a Locale,
    pub config: &'a Config,
    pub bibliography_config: Option<BibliographyConfig>,
    pub first_note_by_id: Option<&'a RefCell<HashMap<String, u32>>>,
}
Expand description

Core style resources borrowed by every Renderer instance.

Bundles the four immutable resolution inputs so that Renderer::new stays within clippy’s argument-count limit.

Fields§

§style: &'a Style

The style definition containing templates and options.

§bibliography: &'a Bibliography

The bibliography containing the reference data.

§locale: &'a Locale

The locale used for terms and formatting.

§config: &'a Config

The active configuration options.

§bibliography_config: Option<BibliographyConfig>

The active bibliography-only configuration.

§first_note_by_id: Option<&'a RefCell<HashMap<String, u32>>>

First note number per reference id (note styles; None for bibliography rendering).

Auto Trait Implementations§

§

impl<'a> Freeze for RendererResources<'a>

§

impl<'a> !RefUnwindSafe for RendererResources<'a>

§

impl<'a> !Send for RendererResources<'a>

§

impl<'a> !Sync for RendererResources<'a>

§

impl<'a> Unpin for RendererResources<'a>

§

impl<'a> UnsafeUnpin for RendererResources<'a>

§

impl<'a> !UnwindSafe for RendererResources<'a>

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> 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, 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.
Source§

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