pub struct FragmentInput {
pub source_name: String,
pub body: String,
pub kind: FragmentKind,
}Expand description
Typed fragment input for layout.
Fields§
§source_name: StringSource name used in source map entries.
body: StringTeX source body to be typeset.
kind: FragmentKindFragment kind controlling how the body is wrapped and parsed.
Implementations§
Source§impl FragmentInput
impl FragmentInput
Sourcepub fn math_inline(body: impl Into<String>) -> Self
pub fn math_inline(body: impl Into<String>) -> Self
Inline math input with source name “input”.
Sourcepub fn math_display(body: impl Into<String>) -> Self
pub fn math_display(body: impl Into<String>) -> Self
Display math input with source name “input”.
Trait Implementations§
Source§impl Clone for FragmentInput
impl Clone for FragmentInput
Source§fn clone(&self) -> FragmentInput
fn clone(&self) -> FragmentInput
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 FragmentInput
impl Debug for FragmentInput
impl Eq for FragmentInput
Source§impl PartialEq for FragmentInput
impl PartialEq for FragmentInput
Source§fn eq(&self, other: &FragmentInput) -> bool
fn eq(&self, other: &FragmentInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FragmentInput
Auto Trait Implementations§
impl Freeze for FragmentInput
impl RefUnwindSafe for FragmentInput
impl Send for FragmentInput
impl Sync for FragmentInput
impl Unpin for FragmentInput
impl UnsafeUnpin for FragmentInput
impl UnwindSafe for FragmentInput
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