Skip to main content

ReverseOwned

Trait ReverseOwned 

Source
pub trait ReverseOwned {
    type Item;

    // Required method
    fn reverse_owned(&self) -> Vec<Self::Item>;
}
Expand description

Provides an owned reverse-order copy of a sequence.

Required Associated Types§

Required Methods§

Source

fn reverse_owned(&self) -> Vec<Self::Item>

Returns the items in reverse order without changing the source vector.

Implementations on Foreign Types§

Source§

impl<T> ReverseOwned for Vec<T>
where T: Clone,

Source§

type Item = T

Source§

fn reverse_owned(&self) -> Vec<T>

Implementors§