[][src]Struct lib_ruby_parser::nodes::Complex

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

Represents a Complex literal (that returns an Complex number)

Fields

value: String

Value of the complex literal, returned as a String, String("1i") for 1i

operator_l: Option<Range>

Location of the - (but not +) operator. + is a part of the literal: 1. +1i is String("+1i") with operator = None 2. -1i is String("1i") with operator = String("-")

-1i
~
expression_l: Range

Location of the full expression

-1i
~~~

Trait Implementations

impl Clone for Complex[src]

impl Debug for Complex[src]

impl PartialEq<Complex> for Complex[src]

impl StructuralPartialEq for Complex[src]

Auto Trait Implementations

impl !RefUnwindSafe for Complex

impl !Send for Complex

impl !Sync for Complex

impl Unpin for Complex

impl UnwindSafe for Complex

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.