pub struct CreateLinearGradientRequest<'input> {
pub picture: Picture,
pub p1: Pointfix,
pub p2: Pointfix,
pub stops: Cow<'input, [Fixed]>,
pub colors: Cow<'input, [Color]>,
}
Fields§
§picture: Picture
§p1: Pointfix
§p2: Pointfix
§stops: Cow<'input, [Fixed]>
§colors: Cow<'input, [Color]>
Implementations§
source§impl<'input> CreateLinearGradientRequest<'input>
impl<'input> CreateLinearGradientRequest<'input>
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'input, [u8]>; 4]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'input, [u8]>; 4]>
Serialize this request into bytes for the provided connection
sourcepub fn into_owned(self) -> CreateLinearGradientRequest<'static>
pub fn into_owned(self) -> CreateLinearGradientRequest<'static>
Clone all borrowed data in this CreateLinearGradientRequest.
Trait Implementations§
source§impl<'input> Clone for CreateLinearGradientRequest<'input>
impl<'input> Clone for CreateLinearGradientRequest<'input>
source§fn clone(&self) -> CreateLinearGradientRequest<'input>
fn clone(&self) -> CreateLinearGradientRequest<'input>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateLinearGradientRequest<'_>
impl Debug for CreateLinearGradientRequest<'_>
source§impl<'input> Default for CreateLinearGradientRequest<'input>
impl<'input> Default for CreateLinearGradientRequest<'input>
source§fn default() -> CreateLinearGradientRequest<'input>
fn default() -> CreateLinearGradientRequest<'input>
Returns the “default value” for a type. Read more
source§impl<'input> Request for CreateLinearGradientRequest<'input>
impl<'input> Request for CreateLinearGradientRequest<'input>
impl<'input> VoidRequest for CreateLinearGradientRequest<'input>
Auto Trait Implementations§
impl<'input> RefUnwindSafe for CreateLinearGradientRequest<'input>
impl<'input> Send for CreateLinearGradientRequest<'input>
impl<'input> Sync for CreateLinearGradientRequest<'input>
impl<'input> Unpin for CreateLinearGradientRequest<'input>
impl<'input> UnwindSafe for CreateLinearGradientRequest<'input>
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