Struct LengthSetter
Source pub struct LengthSetter<'a> { }
Expand description
Sets the raw length of this vector.
§Safety
new_len must be less than or equal to the current capacity.
- The first
new_len items of the vector must be initialized.
Increments the raw length of this vector by 1.
§Safety
This has the same safety invariants as set_len,
with new_len being the current raw length plus one.
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 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.