Struct lib_ruby_parser::nodes::Complex [−][src]
#[repr(C)]pub struct Complex { pub value: StringPtr, pub operator_l: MaybeLoc, pub expression_l: Loc, }
Represents a Complex literal (that returns an Complex number)
Fields
value: StringPtrValue of the complex literal, returned as a String, String("1i") for 1i
operator_l: MaybeLocLocation 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: LocLocation 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,