pub struct AssembledObject {
pub id: u16,
pub version: u8,
pub width: u16,
pub height: u16,
pub data: Vec<u8>,
}Expand description
Assembled object from one or more ObjectDefinitionSegments.
Fields§
§id: u16Object ID
version: u8Object version
width: u16Width in pixels
height: u16Height in pixels
data: Vec<u8>Complete RLE-encoded data
Implementations§
Source§impl AssembledObject
impl AssembledObject
Sourcepub fn from_segments(segments: &[ObjectDefinitionSegment]) -> Option<Self>
pub fn from_segments(segments: &[ObjectDefinitionSegment]) -> Option<Self>
Create from a list of object definition segments (must be in order).
Trait Implementations§
Source§impl Clone for AssembledObject
impl Clone for AssembledObject
Source§fn clone(&self) -> AssembledObject
fn clone(&self) -> AssembledObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AssembledObject
impl RefUnwindSafe for AssembledObject
impl Send for AssembledObject
impl Sync for AssembledObject
impl Unpin for AssembledObject
impl UnsafeUnpin for AssembledObject
impl UnwindSafe for AssembledObject
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