pub struct BorrowedElement<'val> { /* private fields */ }
Expand description

A borrowed implementation of Element

Implementations

Trait Implementations

A borrowed implementation of Builder.

Builds a null from IonType using Builder.

Builds a bool using Builder.

Builds a string using Builder.

Builds a symbol from SymbolToken using Builder.

Builds a i64 using Builder.

Builds a big int using Builder.

Builds a decimal using Builder.

Builds a timestamp using Builder.

Builds a f64 using Builder.

Builds a clob using Builder.

Builds a blob using Builder.

Builds a list from Sequence using Builder.

Builds a sexp from Sequence using Builder.

Builds a struct from Struct using Builder.

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 type of data this element represents.

The annotations for this element. Read more

Return an Element with given annotations

Return true if an Element contains given annotation otherwise return false

Returns whether this element is a null value

Returns a reference to the underlying Integer for this element. Read more

Returns a reference to the underlying float value for this element. Read more

Returns a reference to the underlying Decimal for this element. Read more

Returns a reference to the underlying Timestamp for this element. Read more

Returns a slice to the textual value of this element. Read more

Returns a reference to the SymbolToken of this element. Read more

Returns a reference to the boolean value of this element. Read more

Returns a reference to the underlying bytes of this element. Read more

Returns a reference to the Sequence of this element. Read more

Returns a reference to the Struct of this element. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Constructs a BorrowedElement without annotations from this value.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Returns an borrowed sequence from the given iterator of elements.

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.

Returns the value as an i64 if it can be represented as such. Read more

Returns a reference as a BigInt if it is represented as such. Note that this method may return None if the underlying representation is not stored in a BigInt such as if it is represented as an i64 so it is somewhat asymmetric with respect to IntAccess::as_i64. Read more

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.