pub struct ParLineSpec<ET: EngineTypes> {
pub leftskip: Skip<ET::Dim>,
pub rightskip: Skip<ET::Dim>,
pub target: ET::Dim,
}Expand description
Specification of a (target)line in a paragraph
Fields§
§leftskip: Skip<ET::Dim>\leftskip
rightskip: Skip<ET::Dim>\rightskip
target: ET::DimThe target width of the line
Implementations§
Source§impl<ET: EngineTypes> ParLineSpec<ET>
impl<ET: EngineTypes> ParLineSpec<ET>
Sourcepub fn make(
state: &mut ET::State,
aux: &mut EngineAux<ET>,
) -> Vec<ParLineSpec<ET>>
pub fn make( state: &mut ET::State, aux: &mut EngineAux<ET>, ) -> Vec<ParLineSpec<ET>>
Creates the relevant ParLineSpecs from the current state, by looking
at the current \parshape, \hangindent, \hangafter, \hsize,
\leftskip and \rightskip.
Trait Implementations§
Source§impl<ET: Clone + EngineTypes> Clone for ParLineSpec<ET>
impl<ET: Clone + EngineTypes> Clone for ParLineSpec<ET>
Source§fn clone(&self) -> ParLineSpec<ET>
fn clone(&self) -> ParLineSpec<ET>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<ET: Debug + EngineTypes> Debug for ParLineSpec<ET>
impl<ET: Debug + EngineTypes> Debug for ParLineSpec<ET>
Source§impl<ET: PartialEq + EngineTypes> PartialEq for ParLineSpec<ET>
impl<ET: PartialEq + EngineTypes> PartialEq for ParLineSpec<ET>
impl<ET: Eq + EngineTypes> Eq for ParLineSpec<ET>
impl<ET: EngineTypes> StructuralPartialEq for ParLineSpec<ET>
Auto Trait Implementations§
impl<ET> Freeze for ParLineSpec<ET>
impl<ET> RefUnwindSafe for ParLineSpec<ET>
impl<ET> Send for ParLineSpec<ET>
impl<ET> Sync for ParLineSpec<ET>
impl<ET> Unpin for ParLineSpec<ET>
impl<ET> UnsafeUnpin for ParLineSpec<ET>
impl<ET> UnwindSafe for ParLineSpec<ET>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more