[][src]Struct blend2d::array::Array

#[repr(transparent)]
pub struct Array<T: ArrayType> { /* fields omitted */ }

Methods

impl<T: ArrayType> Array<T>[src]

pub fn new() -> Self[src]

pub fn clear(&mut self)[src]

pub fn shrink_to_fit(&mut self)[src]

pub fn reserve(&mut self, n: usize)[src]

pub fn try_reserve(&mut self, n: usize) -> Result<()>[src]

pub fn truncate(&mut self, n: usize)[src]

pub fn resize(&mut self, fill: &[T])[src]

pub fn remove(&mut self, index: usize) -> Result<()>[src]

pub fn remove_range<R: RangeBounds<usize>>(&mut self, range: R) -> Result<()>[src]

pub fn as_slice(&self) -> &[T][src]

pub fn len(&self) -> usize[src]

pub fn capacity(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn extend_from_slice(&mut self, data: &[T]) -> Result<()>[src]

pub fn insert_from_slice(&mut self, index: usize, data: &[T]) -> Result<()>[src]

pub fn replace_from_slice<R: RangeBounds<usize>>(
    &mut self,
    range: R,
    data: &[T]
) -> Result<()>
[src]

impl<T> Array<T> where
    T: ArrayType + WrappedBlCore, 
[src]

pub fn push(&mut self, item: &T)[src]

pub fn insert(&mut self, index: usize, item: &T)[src]

pub fn replace(&mut self, index: usize, item: &T)[src]

impl Array<i8>[src]

pub fn push(&mut self, item: i8)[src]

pub fn insert(&mut self, index: usize, item: i8)[src]

pub fn replace(&mut self, index: usize, item: i8)[src]

impl Array<u8>[src]

pub fn push(&mut self, item: u8)[src]

pub fn insert(&mut self, index: usize, item: u8)[src]

pub fn replace(&mut self, index: usize, item: u8)[src]

impl Array<i16>[src]

pub fn push(&mut self, item: i16)[src]

pub fn insert(&mut self, index: usize, item: i16)[src]

pub fn replace(&mut self, index: usize, item: i16)[src]

impl Array<u16>[src]

pub fn push(&mut self, item: u16)[src]

pub fn insert(&mut self, index: usize, item: u16)[src]

pub fn replace(&mut self, index: usize, item: u16)[src]

impl Array<i32>[src]

pub fn push(&mut self, item: i32)[src]

pub fn insert(&mut self, index: usize, item: i32)[src]

pub fn replace(&mut self, index: usize, item: i32)[src]

impl Array<u32>[src]

pub fn push(&mut self, item: u32)[src]

pub fn insert(&mut self, index: usize, item: u32)[src]

pub fn replace(&mut self, index: usize, item: u32)[src]

impl Array<i64>[src]

pub fn push(&mut self, item: i64)[src]

pub fn insert(&mut self, index: usize, item: i64)[src]

pub fn replace(&mut self, index: usize, item: i64)[src]

impl Array<u64>[src]

pub fn push(&mut self, item: u64)[src]

pub fn insert(&mut self, index: usize, item: u64)[src]

pub fn replace(&mut self, index: usize, item: u64)[src]

impl Array<f32>[src]

pub fn push(&mut self, item: f32)[src]

pub fn insert(&mut self, index: usize, item: f32)[src]

pub fn replace(&mut self, index: usize, item: f32)[src]

impl Array<f64>[src]

pub fn push(&mut self, item: f64)[src]

pub fn insert(&mut self, index: usize, item: f64)[src]

pub fn replace(&mut self, index: usize, item: f64)[src]

impl Array<isize>[src]

pub fn push(&mut self, item: isize)[src]

pub fn insert(&mut self, index: usize, item: isize)[src]

pub fn replace(&mut self, index: usize, item: isize)[src]

impl Array<usize>[src]

pub fn push(&mut self, item: usize)[src]

pub fn insert(&mut self, index: usize, item: usize)[src]

pub fn replace(&mut self, index: usize, item: usize)[src]

Trait Implementations

impl<T> Geometry for Array<T> where
    [T]: Geometry,
    T: ArrayType
[src]

impl<T: ArrayType> Clone for Array<T>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: ArrayType> Drop for Array<T>[src]

impl<T: ArrayType> PartialEq<Array<T>> for Array<T>[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<T: ArrayType> AsRef<[T]> for Array<T>[src]

impl<T: ArrayType> Default for Array<T>[src]

impl<T: ArrayType> Debug for Array<T>[src]

impl<T, I> Index<I> for Array<T> where
    T: ArrayType,
    I: SliceIndex<[T]>, 
[src]

type Output = I::Output

The returned type after indexing.

impl<T: ArrayType> Deref for Array<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T: ArrayType> Borrow<[T]> for Array<T>[src]

Auto Trait Implementations

impl<T> !Send for Array<T>

impl<T> !Sync for Array<T>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]