pub struct Glue {
pub skip: i64,
pub plus: Option<i64>,
pub pfill: Option<FillCode>,
pub minus: Option<i64>,
pub mfill: Option<FillCode>,
}Fields§
§skip: i64§plus: Option<i64>§pfill: Option<FillCode>§minus: Option<i64>§mfill: Option<FillCode>Implementations§
Source§impl Glue
impl Glue
pub fn new_full( skip: i64, plus: Option<i64>, pfill: Option<FillCode>, minus: Option<i64>, mfill: Option<FillCode>, ) -> Self
pub fn new_full_f64( skip: f64, plus: Option<f64>, pfill: Option<FillCode>, minus: Option<f64>, mfill: Option<FillCode>, ) -> Self
pub fn new_spec( spec: &str, plus: Option<f64>, pfill: Option<FillCode>, minus: Option<f64>, mfill: Option<FillCode>, ) -> Self
pub fn add_glue(self, other: Glue) -> Glue
pub fn to_attribute(&self) -> String
Trait Implementations§
impl Copy for Glue
impl Eq for Glue
Source§impl From<&RegisterValue> for Glue
impl From<&RegisterValue> for Glue
Source§fn from(v: &RegisterValue) -> Glue
fn from(v: &RegisterValue) -> Glue
Converts to this type from the input type.
Source§impl From<Glue> for RegisterValue
impl From<Glue> for RegisterValue
Source§fn from(n: Glue) -> RegisterValue
fn from(n: Glue) -> RegisterValue
Converts to this type from the input type.
Source§impl From<RegisterValue> for Glue
impl From<RegisterValue> for Glue
Source§fn from(v: RegisterValue) -> Glue
fn from(v: RegisterValue) -> Glue
Converts to this type from the input type.
Source§impl IntoRegisterValueOption<Option<RegisterValue>> for Glue
impl IntoRegisterValueOption<Option<RegisterValue>> for Glue
fn into_register_value_option(self) -> Option<RegisterValue>
Source§impl NumericOps for Glue
impl NumericOps for Glue
fn value_of(self) -> i64
fn register_type(&self) -> RegisterType
fn into_glue_type(self) -> Glue
fn add<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
fn new(skip: i64) -> Self
fn new_f64(number: f64) -> Self
fn multiply<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
Source§fn divide<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
fn divide<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
Truncating division
fn subtract<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
fn negate(self) -> Self
fn smaller<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
fn larger<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
fn unit(&self) -> Option<&'static str>
fn value_f64(self) -> f64where
Self: Sized,
fn pt_value(self, prec: Option<u8>) -> f64where
Self: Sized,
fn px_value(self, prec: Option<u8>) -> f64where
Self: Sized,
fn absolute(self) -> Selfwhere
Self: Sized,
fn sign(self) -> i8where
Self: Sized,
Source§fn divideround<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
fn divideround<T: NumericOps>(self, other: T) -> Selfwhere
Self: Sized,
Rounding division
fn to_token(self) -> Tokenwhere
Self: Sized,
fn to_attribute(&self) -> Stringwhere
Self: Display,
Source§impl Object for Glue
impl Object for Glue
fn be_digested(self) -> Result<Digested>
fn stringify(&self) -> String
fn isa_box(&self) -> bool
fn is_expandable(&self) -> bool
fn is_definition(&self) -> bool
fn is_comment(&self) -> bool
Source§fn get_locator(&self) -> Option<Locator>
fn get_locator(&self) -> Option<Locator>
The object’s stored source locator, if it has one.
None is the honest
“no recorded source position” (replacing the old Locator::default()
file!()/line!() sentinel). For “where the parser is now” (error
reporting, box creation), use the free fn gullet::get_locator().impl StructuralPartialEq for Glue
Auto Trait Implementations§
impl Freeze for Glue
impl RefUnwindSafe for Glue
impl Send for Glue
impl Sync for Glue
impl Unpin for Glue
impl UnsafeUnpin for Glue
impl UnwindSafe for Glue
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