[][src]Struct windows::Array

pub struct Array<T: RuntimeType> { /* fields omitted */ }

A WinRT array stores elements contiguously in a heap-allocated buffer.

Implementations

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

pub fn new() -> Self[src]

Creates an empty array.

pub fn with_len(len: usize) -> Self[src]

Creates an array of the given length with default values.

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

Returns true if the array is empty.

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

Returns the length of the array.

pub fn clear(&mut self)[src]

Clears the contents of the array.

Trait Implementations

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

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

type Target = [T::DefaultType]

The resulting type after dereferencing.

impl<T: RuntimeType> DerefMut for Array<T>[src]

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

Auto Trait Implementations

impl<T> RefUnwindSafe for Array<T> where
    <T as RuntimeType>::DefaultType: RefUnwindSafe
[src]

impl<T> !Send for Array<T>[src]

impl<T> !Sync for Array<T>[src]

impl<T> Unpin for Array<T>[src]

impl<T> UnwindSafe for Array<T> where
    <T as RuntimeType>::DefaultType: RefUnwindSafe
[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.