pub struct Image {
pub content: Vec<u8>,
pub center: Option<(Number, Number)>,
pub name: CompactString,
}
Expand description
An image type that can be used in the VM.
Fields§
§content: Vec<u8>
The raw binary content of the image
center: Option<(Number, Number)>
The center (x, y)
of the image as used for NetsBlox sprites.
None
is implied to represent (w / 2, h / 2)
based on the true image size (size decoding cannot be done in no-std).
name: CompactString
The user-level name of the image
Trait Implementations§
Source§impl From<Image> for SimpleValue
impl From<Image> for SimpleValue
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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