[][src]Struct spirq::ty::ArrayType

pub struct ArrayType { /* fields omitted */ }

Implementations

impl ArrayType[src]

pub fn new(proto_ty: &Type, nrepeat: u32, stride: usize) -> ArrayType[src]

pub fn new_unsized(proto_ty: &Type, stride: usize) -> ArrayType[src]

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

Get the minimum size of the array type. If the number of elements is not given until runtime, 0 is returned.

pub fn proto_ty(&self) -> &Type[src]

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

pub fn nrepeat(&self) -> Option<u32>[src]

Trait Implementations

impl Clone for ArrayType[src]

impl Debug for ArrayType[src]

impl Eq for ArrayType[src]

impl Hash for ArrayType[src]

impl PartialEq<ArrayType> for ArrayType[src]

impl StructuralEq for ArrayType[src]

impl StructuralPartialEq for ArrayType[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.