pub struct Line {
pub tool: Tool,
pub color: Color,
pub size: f32,
pub points: Vec<Point>,
}
Expand description
Fields§
§tool: Tool
§color: Color
§size: f32
§points: Vec<Point>
Trait Implementations§
Source§impl<'i> Parse<'i> for Line
impl<'i> Parse<'i> for Line
Source§fn parse(input: &'i [u8]) -> IResult<&'i [u8], Self>
fn parse(input: &'i [u8]) -> IResult<&'i [u8], Self>
Attempts to parse a Line
from a byte sequence
A Line is represented by a series of little-endian 32-bit values. 2 of these values serve an unknown purpose at this time, and most likely map to functionality like selections, with no obvious or useful semantic meaning in the context of a document parser.
Points within a line are represented as a 32-bit point count, followed by the raw Point values themselves.
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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