pub enum TypeSizeHint {
Static(usize),
RuntimeArray(RuntimeArrayHole),
Matrix(MatrixStrideHole),
UnknownArrayStride(UnknownArrayStrideHole),
Struct(StructHole),
}Expand description
A hint of the size of a Type.
It can be a statically known size, or it can have a hole which can be resolved.
Variants§
Static(usize)
A statically known size.
RuntimeArray(RuntimeArrayHole)
A runtime array hole.
Matrix(MatrixStrideHole)
A matrix stride hole.
UnknownArrayStride(UnknownArrayStrideHole)
An unknown array stride hole.
Struct(StructHole)
A hole caused by a runtime array at the end of a struct.
Implementations§
Trait Implementations§
Source§impl Clone for TypeSizeHint
impl Clone for TypeSizeHint
Source§fn clone(&self) -> TypeSizeHint
fn clone(&self) -> TypeSizeHint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TypeSizeHint
impl RefUnwindSafe for TypeSizeHint
impl Send for TypeSizeHint
impl Sync for TypeSizeHint
impl Unpin for TypeSizeHint
impl UnsafeUnpin for TypeSizeHint
impl UnwindSafe for TypeSizeHint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more