[][src]Struct lib_ruby_parser::nodes::Rational

pub struct Rational {
    pub value: String,
    pub operator_l: Option<Range>,
    pub expression_l: Range,
}

Represents rational literal (e.g. 1r)

Fields

value: String

String value of the literal, String("1r") for 1r

operator_l: Option<Range>

Location of the unary - (but not +)

-1r
~
expression_l: Range

Location of the full expression

-1r
~~~

Trait Implementations

impl Clone for Rational[src]

impl Debug for Rational[src]

impl PartialEq<Rational> for Rational[src]

impl StructuralPartialEq for Rational[src]

Auto Trait Implementations

impl !RefUnwindSafe for Rational

impl !Send for Rational

impl !Sync for Rational

impl Unpin for Rational

impl UnwindSafe for Rational

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.