Skip to main content

MuDimension

Struct MuDimension 

Source
pub struct MuDimension(pub i64);

Tuple Fields§

§0: i64

Implementations§

Source§

impl MuDimension

Source

pub fn new_spec(spec: &str) -> Self

Trait Implementations§

Source§

impl Clone for MuDimension

Source§

fn clone(&self) -> MuDimension

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MuDimension

Source§

impl Debug for MuDimension

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MuDimension

Source§

fn default() -> MuDimension

Returns the “default value” for a type. Read more
Source§

impl Display for MuDimension

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for MuDimension

Source§

impl From<MuDimension> for Stored

Source§

fn from(value: MuDimension) -> Self

Converts to this type from the input type.
Source§

impl From<MuDimension> for ArgWrap

Source§

fn from(t: MuDimension) -> Self

Converts to this type from the input type.
Source§

impl From<MuDimension> for RegisterValue

Source§

fn from(n: MuDimension) -> RegisterValue

Converts to this type from the input type.
Source§

impl IntoDigestedOptionResult<Result<Option<Digested>, Error>> for MuDimension

Source§

impl IntoRegisterValueOption<Option<RegisterValue>> for MuDimension

Source§

impl NumericOps for MuDimension

Source§

fn new(number: i64) -> Self

Source§

fn new_f64(number: f64) -> Self

Source§

fn value_of(self) -> i64

Source§

fn register_type(&self) -> RegisterType

Source§

fn unit(&self) -> Option<&'static str>

Source§

fn to_attribute(&self) -> String

Source§

fn value_f64(self) -> f64
where Self: Sized,

Source§

fn pt_value(self, prec: Option<u8>) -> f64
where Self: Sized,

Source§

fn px_value(self, prec: Option<u8>) -> f64
where Self: Sized,

Source§

fn absolute(self) -> Self
where Self: Sized,

Source§

fn sign(self) -> i8
where Self: Sized,

Source§

fn negate(self) -> Self
where Self: Sized,

Source§

fn add<T: NumericOps>(self, other: T) -> Self
where Self: Sized,

Source§

fn subtract<T: NumericOps>(self, other: T) -> Self
where Self: Sized,

Source§

fn multiply<T: NumericOps>(self, other: T) -> Self
where Self: Sized,

Source§

fn divide<T: NumericOps>(self, other: T) -> Self
where Self: Sized,

Truncating division
Source§

fn divideround<T: NumericOps>(self, other: T) -> Self
where Self: Sized,

Rounding division
Source§

fn smaller<T: NumericOps>(self, other: T) -> Self
where Self: Sized,

Source§

fn larger<T: NumericOps>(self, other: T) -> Self
where Self: Sized,

Source§

fn to_token(self) -> Token
where Self: Sized,

Source§

fn into_glue_type(self) -> Glue
where Self: Sized,

Source§

impl Object for MuDimension

Source§

fn stringify(&self) -> String

Source§

fn isa_box(&self) -> bool

Source§

fn is_expandable(&self) -> bool

Source§

fn is_definition(&self) -> bool

Source§

fn is_comment(&self) -> bool

Source§

fn be_digested(self) -> Result<Digested>
where Self: Sized + Debug,

Source§

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().
Source§

fn revert(&self) -> Result<Tokens>

each concrete object needs to provide its own path back to tokens
Source§

impl PartialEq for MuDimension

Source§

fn eq(&self, other: &MuDimension) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MuDimension

Source§

impl TryFrom<ArgWrap> for MuDimension

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(aw: ArgWrap) -> Result<MuDimension>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoResultArgWrap<Result<ArgWrap, Error>> for T
where T: Into<ArgWrap>,

Source§

fn into_result_argwrap(self) -> Result<ArgWrap, Error>

performs the conversion
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.