pub struct NoteRegistry { /* private fields */ }Expand description
Every note the document defines, laid out once.
Implementations§
Source§impl NoteRegistry
impl NoteRegistry
Sourcepub fn build(
input: &LayoutInput,
styles: &CT_Styles,
media: &MediaRegistry,
fm: &mut FontManager,
num_state: &mut NumberingState,
content_width: f64,
) -> Result<Self>
pub fn build( input: &LayoutInput, styles: &CT_Styles, media: &MediaRegistry, fm: &mut FontManager, num_state: &mut NumberingState, content_width: f64, ) -> Result<Self>
Lay out every note in the footnote and endnote streams.
content_width is the page’s content width. Notes are broken at
content_width - NOTE_INDENT, because that is where they are drawn.
pub fn get(&self, note: NoteRef) -> Option<&NoteLayout>
Sourcepub fn has_continuation_separator(&self) -> bool
pub fn has_continuation_separator(&self) -> bool
Whether either stream defined the rule drawn above a carried note.
Trait Implementations§
Source§impl Clone for NoteRegistry
impl Clone for NoteRegistry
Source§fn clone(&self) -> NoteRegistry
fn clone(&self) -> NoteRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoteRegistry
impl Debug for NoteRegistry
Source§impl Default for NoteRegistry
impl Default for NoteRegistry
Source§fn default() -> NoteRegistry
fn default() -> NoteRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoteRegistry
impl RefUnwindSafe for NoteRegistry
impl Send for NoteRegistry
impl Sync for NoteRegistry
impl Unpin for NoteRegistry
impl UnsafeUnpin for NoteRegistry
impl UnwindSafe for NoteRegistry
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