pub struct Shape<'a>(/* private fields */);Expand description
Borrowed shape-value view.
Implementations§
Source§impl<'a> Shape<'a>
impl<'a> Shape<'a>
pub fn name(&self) -> &'a str
pub fn rank(&self) -> u32
pub fn data(&self) -> &'a [u8]
Sourcepub fn values(&self) -> Option<ShapeValues<'a>>
pub fn values(&self) -> Option<ShapeValues<'a>>
Decoded shape values, or None for a nonempty intermediate shape without constant data.
A rank-zero shape is the constant empty list and therefore returns an empty iterator.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Shape<'a>
impl<'a> RefUnwindSafe for Shape<'a>
impl<'a> Send for Shape<'a>
impl<'a> Sync for Shape<'a>
impl<'a> Unpin for Shape<'a>
impl<'a> UnsafeUnpin for Shape<'a>
impl<'a> UnwindSafe for Shape<'a>
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