pub enum RuleTarget {
Command(&'static BuiltinCommandRecord),
Environment(&'static BuiltinEnvironmentRecord),
Character(&'static BuiltinCharacterRecord),
}Expand description
A specific command, environment, or character that a rule operates on, references, or produces.
Targets are used in RuleConsumes and RuleProduces to declare the
knowledge-base entries a rule interacts with.
Variants§
Command(&'static BuiltinCommandRecord)
A builtin command record from texform-knowledge.
Environment(&'static BuiltinEnvironmentRecord)
A builtin environment record from texform-knowledge.
Character(&'static BuiltinCharacterRecord)
A builtin character record from texform-knowledge.
Implementations§
Source§impl RuleTarget
impl RuleTarget
pub const fn key(self) -> RuleTargetKey
pub const fn kind_label(self) -> &'static str
pub const fn name(self) -> &'static str
Trait Implementations§
Source§impl Clone for RuleTarget
impl Clone for RuleTarget
Source§fn clone(&self) -> RuleTarget
fn clone(&self) -> RuleTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuleTarget
Source§impl Debug for RuleTarget
impl Debug for RuleTarget
impl Eq for RuleTarget
Source§impl From<RuleTarget> for RuleTargetKey
impl From<RuleTarget> for RuleTargetKey
Source§fn from(value: RuleTarget) -> Self
fn from(value: RuleTarget) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuleTarget
impl PartialEq for RuleTarget
Source§fn eq(&self, other: &RuleTarget) -> bool
fn eq(&self, other: &RuleTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuleTarget
Auto Trait Implementations§
impl Freeze for RuleTarget
impl RefUnwindSafe for RuleTarget
impl Send for RuleTarget
impl Sync for RuleTarget
impl Unpin for RuleTarget
impl UnsafeUnpin for RuleTarget
impl UnwindSafe for RuleTarget
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.