#[repr(C)]pub struct PtrOffset<T: Copy>(pub isize, _);
Expand description
A relative offset to another struct in the cache, which is encoded as a pointer in fontconfig.
See Offset
for more on offsets in fontconfig and how we handle them in this crate.
Tuple Fields§
§0: isize
Trait Implementations§
Source§impl<T: AnyBitPattern + Copy> IntoOffset for PtrOffset<T>
impl<T: AnyBitPattern + Copy> IntoOffset for PtrOffset<T>
impl<T: Copy + Copy> Copy for PtrOffset<T>
impl<T: Copy + 'static> Pod for PtrOffset<T>
Auto Trait Implementations§
impl<T> Freeze for PtrOffset<T>
impl<T> RefUnwindSafe for PtrOffset<T>where
T: RefUnwindSafe,
impl<T> Send for PtrOffset<T>where
T: Send,
impl<T> Sync for PtrOffset<T>where
T: Sync,
impl<T> Unpin for PtrOffset<T>where
T: Unpin,
impl<T> UnwindSafe for PtrOffset<T>where
T: UnwindSafe,
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
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
.