pub type LinearGradientStorage = Storage<LinearGradientPrimitive>;

Aliased Type§

struct LinearGradientStorage {
    data: Vec<LinearGradientPrimitive, Global>,
}

Fields§

§data: Vec<LinearGradientPrimitive, Global>

Implementations§

source§

impl<T> Storage<T>

source

pub fn new(initial_capacity: usize) -> Self

source

pub fn len(&self) -> usize

source

pub fn clear(&mut self)

source

pub fn push(&mut self, t: T) -> Index<T>

source

pub fn reserve(&mut self, count: usize)

source

pub fn recycle(&mut self, recycler: &mut Recycler)

source

pub fn extend<II: IntoIterator<Item = T>>(&mut self, iter: II) -> Range<T>

source

pub fn open_range(&self) -> OpenRange<T>

source

pub fn close_range(&self, range: OpenRange<T>) -> Range<T>

Trait Implementations§

source§

impl<T> Index<Index<T>> for Storage<T>

§

type Output = T

The returned type after indexing.
source§

fn index(&self, index: Index<T>) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<T> Index<Range<T>> for Storage<T>

§

type Output = [T]

The returned type after indexing.
source§

fn index(&self, index: Range<T>) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<T> IndexMut<Index<T>> for Storage<T>

source§

fn index_mut(&mut self, index: Index<T>) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<T> IndexMut<Range<T>> for Storage<T>

source§

fn index_mut(&mut self, index: Range<T>) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<T> Serialize for Storage<T>where T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more