pub struct Skip<D: TeXDimen> {
pub base: D,
pub stretch: Option<StretchShrink<D>>,
pub shrink: Option<StretchShrink<D>>,
}Expand description
A skip a.k.a. glue value, i.e. a dimension with optional stretch and shrink components.
Fields§
§base: D§stretch: Option<StretchShrink<D>>§shrink: Option<StretchShrink<D>>Implementations§
Source§impl<D: TeXDimen> Skip<D>
impl<D: TeXDimen> Skip<D>
pub fn new( base: D, stretch: Option<StretchShrink<D>>, shrink: Option<StretchShrink<D>>, ) -> Self
Trait Implementations§
Source§impl<D: TeXDimen> Ord for Skip<D>
impl<D: TeXDimen> Ord for Skip<D>
Source§impl<D: TeXDimen> PartialOrd for Skip<D>
impl<D: TeXDimen> PartialOrd for Skip<D>
impl<D: Copy + TeXDimen> Copy for Skip<D>
impl<D: Eq + TeXDimen> Eq for Skip<D>
impl<D: TeXDimen> StructuralPartialEq for Skip<D>
Auto Trait Implementations§
impl<D> Freeze for Skip<D>where
D: Freeze,
impl<D> RefUnwindSafe for Skip<D>where
D: RefUnwindSafe,
impl<D> Send for Skip<D>where
D: Send,
impl<D> Sync for Skip<D>where
D: Sync,
impl<D> Unpin for Skip<D>where
D: Unpin,
impl<D> UnsafeUnpin for Skip<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for Skip<D>where
D: UnwindSafe,
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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 moreSource§impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.