Trait coins_bip32::ecdsa::signature::digest::block_buffer::generic_array::sequence::Shorten
source · pub unsafe trait Shorten<T>: Sized + GenericSequence<T> {
type Shorter: Lengthen<T, Longer = Self>;
// Required methods
fn pop_back(self) -> (Self::Shorter, T);
fn pop_front(self) -> (T, Self::Shorter);
}
Expand description
Defines a GenericSequence
which can be shortened by removing the first or last element from it.
Additionally, any shortened sequence can be lengthened by appending or prepending an element to it.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.