pub struct VectorData {
pub lead: u32,
pub objects: Vec<VectorObject>,
pub trailing: Vec<u8>,
}Expand description
All objects of one VectorData payload.
Fields§
§lead: u32The first u32 (always 0 in the corpus).
objects: Vec<VectorObject>The objects, in drawing order.
trailing: Vec<u8>Bytes after the declared length (none in the corpus).
Implementations§
Source§impl VectorData
impl VectorData
Source§impl VectorData
impl VectorData
Sourcepub fn from_lines(lines: &[NewVectorLine], brush_style: u32) -> VectorData
pub fn from_lines(lines: &[NewVectorLine], brush_style: u32) -> VectorData
Vector data holding lines (see VectorObject::new_line).
Sourcepub fn from_frames(
frames: &[NewFrame],
template: &FrameTemplate,
brush_style: u32,
) -> VectorData
pub fn from_frames( frames: &[NewFrame], template: &FrameTemplate, brush_style: u32, ) -> VectorData
A frame folder’s vector data holding frames (see
VectorObject::new_frame).
Sourcepub fn brush_style(&self) -> Option<u32>
pub fn brush_style(&self) -> Option<u32>
The brush style of the first object (see VectorObject::brush_style).
Trait Implementations§
Source§impl Clone for VectorData
impl Clone for VectorData
Source§impl Debug for VectorData
impl Debug for VectorData
Source§impl PartialEq for VectorData
impl PartialEq for VectorData
impl StructuralPartialEq for VectorData
Auto Trait Implementations§
impl Freeze for VectorData
impl RefUnwindSafe for VectorData
impl Send for VectorData
impl Sync for VectorData
impl Unpin for VectorData
impl UnsafeUnpin for VectorData
impl UnwindSafe for VectorData
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