pub enum ShapeLayout {
Sized(Layout),
Unsized,
}
Expand description
Layout of the shape
Variants§
Implementations§
Source§impl ShapeLayout
impl ShapeLayout
Sourcepub fn sized_layout(self) -> Result<Layout, UnsizedError>
pub fn sized_layout(self) -> Result<Layout, UnsizedError>
Layout
if this type is Sized
Trait Implementations§
Source§impl Clone for ShapeLayout
impl Clone for ShapeLayout
Source§fn clone(&self) -> ShapeLayout
fn clone(&self) -> ShapeLayout
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 moreSource§impl Debug for ShapeLayout
impl Debug for ShapeLayout
Source§impl Hash for ShapeLayout
impl Hash for ShapeLayout
impl Copy for ShapeLayout
Auto Trait Implementations§
impl Freeze for ShapeLayout
impl RefUnwindSafe for ShapeLayout
impl Send for ShapeLayout
impl Sync for ShapeLayout
impl Unpin for ShapeLayout
impl UnwindSafe for ShapeLayout
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