#[repr(C)]pub struct CacheData {
pub magic: c_uint,
pub version: c_int,
pub size: isize,
pub dir: Offset<u8>,
pub dirs: Offset<Offset<u8>>,
pub dirs_count: c_int,
pub set: Offset<FontSetData>,
pub checksum: c_int,
pub checksum_nano: c_int,
}
Expand description
The fontconfig cache header, in the raw serialized format.
Fields§
§magic: c_uint
The magic 4 bytes marking the data as a fontconfig cache.
version: c_int
The cache format version. We support versions 7 and 8.
size: isize
The size of the cache.
dir: Offset<u8>
This cache caches the data of all fonts in some directory. Here is (an offset to) the name of that directory.
dirs: Offset<Offset<u8>>
Here is an offset to an array of offsets to the names of subdirectories.
dirs_count: c_int
How many subdirectories are there?
set: Offset<FontSetData>
An offset to the set of fonts in this cache.
checksum: c_int
A “checksum” of this cache (but really just a timestamp).
checksum_nano: c_int
Another “checksum” of this cache (but really just a more precise timestamp).
Trait Implementations§
impl AnyBitPattern for CacheData
impl Copy for CacheData
Auto Trait Implementations§
impl Freeze for CacheData
impl RefUnwindSafe for CacheData
impl Send for CacheData
impl Sync for CacheData
impl Unpin for CacheData
impl UnwindSafe for CacheData
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
.