[−][src]Struct windows::Array
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.
fn deref(&self) -> &[T::DefaultType]
[src]
impl<T: RuntimeType> DerefMut for Array<T>
[src]
fn deref_mut(&mut self) -> &mut [T::DefaultType]
[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]
<T as RuntimeType>::DefaultType: RefUnwindSafe,
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]
<T as RuntimeType>::DefaultType: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,