Struct synthez::Spanning[][src]

pub struct Spanning<T> where
    T: ?Sized
{ /* fields omitted */ }
Expand description

Wrapper for non-Spanned types to hold their Span.

Implementations

Creates a new Spanning item out of the given value and its Span.

Destructures this Spanning wrapper returning the underlying value.

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

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Returns a Span covering the complete contents of this syntax tree node, or Span::call_site() if this node is empty. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.

Merges the provided value to this field::Container with the specified parsing Kind and Deduplication strategy. Read more

Merges the value extracted from another field::Container to this field::Container with the specified parsing Kind and Deduplication strategy. Read more

Checks whether the specified validation Rule is satisfied. Read more