pub struct Dim32(pub i32);Expand description
A plain TeX dimension, represented as a 32-bit integer in scaled points (sp), where 65536sp = 1pt.
Tuple Fields§
§0: i32Implementations§
Trait Implementations§
Source§impl Ord for Dim32
impl Ord for Dim32
Source§impl PartialOrd for Dim32
impl PartialOrd for Dim32
Source§impl TeXDimen for Dim32
impl TeXDimen for Dim32
Source§fn scale_float(&self, times: f64) -> Self
fn scale_float(&self, times: f64) -> Self
Scales this dimension by a floating-point number.
Source§fn from_sp(sp: i32) -> Self
fn from_sp(sp: i32) -> Self
Make a new dimension from a value in “scaled points” (
sp = 1/65536 pt).Source§fn from_float<ET: EngineTypes<Dim = Self>>(
engine: &EngineReferences<'_, ET>,
float: f64,
dim: &[u8],
) -> Self
fn from_float<ET: EngineTypes<Dim = Self>>( engine: &EngineReferences<'_, ET>, float: f64, dim: &[u8], ) -> Self
Make a new dimension from a floating-point number and a unit. The unit is assumed to be in
Self::UNITS.Source§const UNITS: &'static [&'static [u8]] = DEFAULT_UNITS
const UNITS: &'static [&'static [u8]] = DEFAULT_UNITS
The units used in this dimension. By default
DEFAULT_UNITS.impl Copy for Dim32
impl Eq for Dim32
impl StructuralPartialEq for Dim32
Auto Trait Implementations§
impl Freeze for Dim32
impl RefUnwindSafe for Dim32
impl Send for Dim32
impl Sync for Dim32
impl Unpin for Dim32
impl UnsafeUnpin for Dim32
impl UnwindSafe for Dim32
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.