pub struct Pair {
pub x: Float,
pub y: Float,
}Expand description
A pair of numerical values, typically (x,y) coordinates. Perl: LaTeXML::Core::Pair
Fields§
§x: Float§y: FloatImplementations§
Trait Implementations§
Source§impl From<Pair> for RegisterValue
impl From<Pair> for RegisterValue
Source§fn from(p: Pair) -> RegisterValue
fn from(p: Pair) -> RegisterValue
Converts to this type from the input type.
Source§impl Object for Pair
impl Object for Pair
Source§fn revert(&self) -> Result<Tokens>
fn revert(&self) -> Result<Tokens>
each concrete object needs to provide its own path back to tokens
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 Pair
Auto Trait Implementations§
impl Freeze for Pair
impl RefUnwindSafe for Pair
impl Send for Pair
impl Sync for Pair
impl Unpin for Pair
impl UnsafeUnpin for Pair
impl UnwindSafe for Pair
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