pub struct HeapNode { /* private fields */ }
Expand description

HeapNode contains a heap reference and a JSRef to an AST subtree in it. It implements SourceNode for on-heap AST trees.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Location of the node where an error happened.

Try to get source mapping for self.

Use the node as a literal.

Get the boolean value of a child node with name property. It’s a ParseError if it does not exist or does not have a boolean meaning. Read more

Get the string value of a child node with name property. It’s a ParseError if it does not exist or does not have a string meaning. Read more

Get a child node with this name; if it does not exist, return None. Then transform it through action, propagating its Result out. A child node exis Read more

Map the array of children of a child node with name property. It’s a ParseError if it does not exist or does not have an array meaning. Read more

Check that the value of property is a string equal to value. Depends on SourceNode::get_str. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.