#[repr(C)]pub struct PathTag(pub u8);Expand description
Path tag representation.
Tuple Fields§
§0: u8Implementations§
Source§impl PathTag
impl PathTag
Sourcepub const LINE_TO_F32: Self
pub const LINE_TO_F32: Self
32-bit floating point line segment.
This is equivalent to (PathSegmentType::LINE_TO | PathTag::F32_BIT).
Sourcepub const QUAD_TO_F32: Self
pub const QUAD_TO_F32: Self
32-bit floating point quadratic segment.
This is equivalent to (PathSegmentType::QUAD_TO | PathTag::F32_BIT).
Sourcepub const CUBIC_TO_F32: Self
pub const CUBIC_TO_F32: Self
32-bit floating point cubic segment.
This is equivalent to (PathSegmentType::CUBIC_TO | PathTag::F32_BIT).
Sourcepub const LINE_TO_I16: Self
pub const LINE_TO_I16: Self
16-bit integral line segment.
Sourcepub const QUAD_TO_I16: Self
pub const QUAD_TO_I16: Self
16-bit integral quadratic segment.
Sourcepub const CUBIC_TO_I16: Self
pub const CUBIC_TO_I16: Self
16-bit integral cubic segment.
Sourcepub const SUBPATH_END_BIT: u8 = 0x4
pub const SUBPATH_END_BIT: u8 = 0x4
Bit that marks a segment that is the end of a subpath.
Sourcepub fn is_path_segment(self) -> bool
pub fn is_path_segment(self) -> bool
Returns true if the tag is a segment.
Sourcepub fn is_subpath_end(self) -> bool
pub fn is_subpath_end(self) -> bool
Returns true if this segment ends a subpath.
Sourcepub fn set_subpath_end(&mut self)
pub fn set_subpath_end(&mut self)
Sets the subpath end bit.
Sourcepub fn path_segment_type(self) -> PathSegmentType
pub fn path_segment_type(self) -> PathSegmentType
Returns the segment type.
Trait Implementations§
impl Copy for PathTag
impl Eq for PathTag
impl Pod for PathTag
impl StructuralPartialEq for PathTag
Auto Trait Implementations§
impl Forget for PathTag
impl Freeze for PathTag
impl Move for PathTag
impl RefUnwindSafe for PathTag
impl Send for PathTag
impl Sync for PathTag
impl Unpin for PathTag
impl UnsafeUnpin for PathTag
impl UnwindSafe for PathTag
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.