Struct over::arr::Arr [] [src]

pub struct Arr { /* fields omitted */ }

Arr struct.

Methods

impl Arr
[src]

[src]

Returns a new, empty Arr.

[src]

Returns a new Arr with the given value vector as elements.

[src]

Returns the type of all elements in this Arr.

[src]

Gets the value at index. Returns an error if index is out of bounds.

[src]

Returns the length of this Arr.

[src]

Returns whether this Arr is empty.

[src]

Returns whether this Arr and other point to the same data.

[src]

Sets the value at index to value. Returns an error if index is out of bounds.

[src]

Adds a Value to the Arr. Returns an error if the new Value is type-incompatible with the Arr.

[src]

Inserts a Value into the Arr at the given index. Returns an error if the new Value is type-incompatible with the Arr or if the index is out of bounds.

[src]

Removes and returns a Value from the Arr at the given index. Sets the Arr type to Empty if the new length is 0, otherwise the type is left unchanged. Returns an error if the index is out of bounds.

Trait Implementations

impl Clone for Arr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Arr
[src]

[src]

Formats the value using the given formatter.

impl Default for Arr
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for Arr
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<Value> for Arr
[src]

[src]

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

1.0.0
[src]

This method tests for !=.