pub struct LinearGradient {
pub point_0: Point,
pub point_1: Point,
pub color_index_0: u64,
pub color_index_1: u64,
}Fields§
§point_0: Point§point_1: Point§color_index_0: u64§color_index_1: u64Implementations§
Source§impl LinearGradient
impl LinearGradient
pub fn read_from_cursor( header: &TinyVgHeader, cursor: &mut Cursor<&[u8]>, ) -> Result<LinearGradient, TinyVgParseError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinearGradient
impl RefUnwindSafe for LinearGradient
impl Send for LinearGradient
impl Sync for LinearGradient
impl Unpin for LinearGradient
impl UnwindSafe for LinearGradient
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