Struct write_fonts::OffsetMarker
source · [−]pub struct OffsetMarker<T, const N: usize = WIDTH_16> { /* private fields */ }Expand description
An offset subtable.
The generic const N is the width of the offset, in bytes.
Implementations
sourceimpl<const N: usize, T> OffsetMarker<T, N>
impl<const N: usize, T> OffsetMarker<T, N>
sourceimpl<const N: usize, T> OffsetMarker<T, N>
impl<const N: usize, T> OffsetMarker<T, N>
sourcepub fn new_maybe_null(obj: Option<T>) -> Self
pub fn new_maybe_null(obj: Option<T>) -> Self
Creates a new marker with an object that may be null.
Trait Implementations
sourceimpl<T: Clone, const N: usize> Clone for OffsetMarker<T, N>
impl<T: Clone, const N: usize> Clone for OffsetMarker<T, N>
sourcefn clone(&self) -> OffsetMarker<T, N>
fn clone(&self) -> OffsetMarker<T, N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<T: Debug, const N: usize> Debug for OffsetMarker<T, N>
impl<T: Debug, const N: usize> Debug for OffsetMarker<T, N>
sourceimpl<T: Default, const N: usize> Default for OffsetMarker<T, N>
impl<T: Default, const N: usize> Default for OffsetMarker<T, N>
sourcefn default() -> OffsetMarker<T, N>
fn default() -> OffsetMarker<T, N>
Returns the “default value” for a type. Read more
sourceimpl<const N: usize, T: FontWrite> FontWrite for OffsetMarker<T, N>
impl<const N: usize, T: FontWrite> FontWrite for OffsetMarker<T, N>
sourcefn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
sourceimpl<const N: usize, T, U> From<Result<U, ReadError>> for OffsetMarker<T, N>where
T: FromTableRef<U>,
impl<const N: usize, T, U> From<Result<U, ReadError>> for OffsetMarker<T, N>where
T: FromTableRef<U>,
sourceimpl<T: PartialEq, const N: usize> PartialEq<OffsetMarker<T, N>> for OffsetMarker<T, N>
impl<T: PartialEq, const N: usize> PartialEq<OffsetMarker<T, N>> for OffsetMarker<T, N>
sourcefn eq(&self, other: &OffsetMarker<T, N>) -> bool
fn eq(&self, other: &OffsetMarker<T, N>) -> bool
sourceimpl<const N: usize, T: Validate> Validate for OffsetMarker<T, N>
impl<const N: usize, T: Validate> Validate for OffsetMarker<T, N>
sourcefn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl<T: Eq, const N: usize> Eq for OffsetMarker<T, N>
impl<T, const N: usize> StructuralEq for OffsetMarker<T, N>
impl<T, const N: usize> StructuralPartialEq for OffsetMarker<T, N>
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for OffsetMarker<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for OffsetMarker<T, N>where
T: Send,
impl<T, const N: usize> Sync for OffsetMarker<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for OffsetMarker<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for OffsetMarker<T, N>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more