pub struct Font(pub u16);
Expand description
A reference to a font that has been loaded.
Tuple Fields§
§0: u16
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Font
impl<'de> Deserialize<'de> for Font
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S: TexlangState> Parsable<S> for Font
impl<S: TexlangState> Parsable<S> for Font
source§fn parse_impl(input: &mut ExpandedStream<S>) -> Result<Self, Box<Error>>
fn parse_impl(input: &mut ExpandedStream<S>) -> Result<Self, Box<Error>>
Parses a value from the vm::ExpandedStream.
source§impl SupportedType for Font
impl SupportedType for Font
source§fn new_command<S>(
ref_fn: RefFn<S, Self>,
ref_mut_fn: MutRefFn<S, Self>,
index_resolver: Option<IndexResolver<S>>,
) -> Command<S>
fn new_command<S>( ref_fn: RefFn<S, Self>, ref_mut_fn: MutRefFn<S, Self>, index_resolver: Option<IndexResolver<S>>, ) -> Command<S>
Create a new command of this type with the provided reference functions and index resolver.
source§fn update_save_stack<S>(
input: &mut ExecutionInput<S>,
variable: &TypedVariable<S, Self>,
scope: Scope,
overwritten_value: Self,
)
fn update_save_stack<S>( input: &mut ExecutionInput<S>, variable: &TypedVariable<S, Self>, scope: Scope, overwritten_value: Self, )
Update the VM’s save stack after a variable assignment.
source§fn new_typed_variable<S>(
command: &Command<S>,
index: Index,
) -> Option<TypedVariable<S, Self>>
fn new_typed_variable<S>( command: &Command<S>, index: Index, ) -> Option<TypedVariable<S, Self>>
Create a new typed variable of this type from the getters in the command and the provided index. Read more
source§fn try_cast<S>(
command: &Command<S>,
) -> Option<(RefFn<S, Self>, MutRefFn<S, Self>)>
fn try_cast<S>( command: &Command<S>, ) -> Option<(RefFn<S, Self>, MutRefFn<S, Self>)>
Try to cast a variable command to this type.
source§fn recycle<S>(input: &mut ExecutionInput<S>, overwritten_value: Self)
fn recycle<S>(input: &mut ExecutionInput<S>, overwritten_value: Self)
Recycle a value that’s about to be dropped. Read more
impl Copy for Font
impl Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)