Skip to main content

MultiWriteNode

Struct MultiWriteNode 

Source
pub struct MultiWriteNode<'pr> { /* private fields */ }
Expand description

Represents a write to a multi-target expression.

a, b, c = 1, 2, 3
^^^^^^^^^^^^^^^^^

Implementationsยง

Sourceยง

impl<'pr> MultiWriteNode<'pr>

Source

pub const fn as_node(&self) -> Node<'pr>

Converts this node to a generic node.

Source

pub fn location(&self) -> Location<'pr>

Returns the location of this node.

Source

pub fn flags(&self) -> pm_node_flags_t

Returns the flags of this node.

Source

pub fn lefts(&self) -> NodeList<'pr>

Returns the lefts param

Source

pub fn rest(&self) -> Option<Node<'pr>>

Returns the rest param

Source

pub fn rights(&self) -> NodeList<'pr>

Returns the rights param

Source

pub fn lparen_loc(&self) -> Option<Location<'pr>>

Returns the lparen_loc param

Source

pub fn rparen_loc(&self) -> Option<Location<'pr>>

Returns the rparen_loc param

Source

pub fn operator_loc(&self) -> Location<'pr>

Returns the operator_loc param

Source

pub fn value(&self) -> Node<'pr>

Returns the value param

Trait Implementationsยง

Sourceยง

impl Debug for MultiWriteNode<'_>

Sourceยง

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

Formats the value using the given formatter. Read more

Auto Trait Implementationsยง

ยง

impl<'pr> !Send for MultiWriteNode<'pr>

ยง

impl<'pr> !Sync for MultiWriteNode<'pr>

ยง

impl<'pr> !UnwindSafe for MultiWriteNode<'pr>

ยง

impl<'pr> Freeze for MultiWriteNode<'pr>

ยง

impl<'pr> RefUnwindSafe for MultiWriteNode<'pr>

ยง

impl<'pr> Unpin for MultiWriteNode<'pr>

ยง

impl<'pr> UnsafeUnpin for MultiWriteNode<'pr>

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.