pub struct PrimitiveCommands<ET: EngineTypes> { /* private fields */ }Expand description
A store for all primitive commands.
Implementations§
Source§impl<ET: EngineTypes> PrimitiveCommands<ET>
impl<ET: EngineTypes> PrimitiveCommands<ET>
Sourcepub fn register(
&mut self,
name: &'static str,
cmd: PrimitiveCommand<ET>,
) -> PrimitiveIdentifier
pub fn register( &mut self, name: &'static str, cmd: PrimitiveCommand<ET>, ) -> PrimitiveIdentifier
Registers a new primitive command.
Sourcepub fn get_id(&self, id: PrimitiveIdentifier) -> Option<&TeXCommand<ET>>
pub fn get_id(&self, id: PrimitiveIdentifier) -> Option<&TeXCommand<ET>>
Return the primitive command with the given identifier.
Sourcepub fn get_name(&self, s: &str) -> Option<PrimitiveIdentifier>
pub fn get_name(&self, s: &str) -> Option<PrimitiveIdentifier>
Return the PrimitiveIdentifier of the primitive command with the given name.
Trait Implementations§
Source§impl<ET: Clone + EngineTypes> Clone for PrimitiveCommands<ET>
impl<ET: Clone + EngineTypes> Clone for PrimitiveCommands<ET>
Source§fn clone(&self) -> PrimitiveCommands<ET>
fn clone(&self) -> PrimitiveCommands<ET>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<ET: EngineTypes> Default for PrimitiveCommands<ET>
impl<ET: EngineTypes> Default for PrimitiveCommands<ET>
Auto Trait Implementations§
impl<ET> Freeze for PrimitiveCommands<ET>
impl<ET> RefUnwindSafe for PrimitiveCommands<ET>where
<ET as EngineTypes>::Char: RefUnwindSafe,
<ET as EngineTypes>::Font: RefUnwindSafe,
<ET as EngineTypes>::Token: RefUnwindSafe,
impl<ET> Send for PrimitiveCommands<ET>
impl<ET> Sync for PrimitiveCommands<ET>
impl<ET> Unpin for PrimitiveCommands<ET>where
<ET as EngineTypes>::Char: Unpin,
<ET as EngineTypes>::Font: Unpin,
<ET as EngineTypes>::Token: Unpin,
impl<ET> UnsafeUnpin for PrimitiveCommands<ET>
impl<ET> UnwindSafe for PrimitiveCommands<ET>where
<ET as EngineTypes>::Char: UnwindSafe,
<ET as EngineTypes>::Font: UnwindSafe,
<ET as EngineTypes>::Token: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().