#[repr(C)]pub struct Clip {
pub ix: u32,
pub path_ix: i32,
}Expand description
Clip resolution.
This is an intermediate element used to match clips to associated paths and is also used to connect begin and end clip pairs.
Fields§
§ix: u32Index of the draw object.
path_ix: i32This is a packed encoding of an enum with the sign bit as the tag. If positive,
this entry is a BeginClip and contains the associated path index. If negative,
it is an EndClip and contains the bitwise-not of the EndClip draw object index.
Trait Implementations§
impl Copy for Clip
impl Pod for Clip
Auto Trait Implementations§
impl Forget for Clip
impl Freeze for Clip
impl Move for Clip
impl RefUnwindSafe for Clip
impl Send for Clip
impl Sync for Clip
impl Unpin for Clip
impl UnsafeUnpin for Clip
impl UnwindSafe for Clip
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.