pub enum CallableKind {
Macro,
Environment,
Specials,
}Expand description
A callable kind: one of the three forms in which an element can be written in a document, a macro, an environment or a special character sequence.
SyntaxDef::kind returns it for a syntax; OverrideDef and
Symbol use it to say which form a name belongs to. Its
Display text (macro, environment, specials) appears in error
messages and in the registry digest (the hash of
everything about a registry that can change what processing produces).
It is written to data with Serialize; see serialized
forms.
Variants§
Macro
A macro: \name{…}.
Environment
An environment: \begin{name}…\end{name}.
Specials
A special character sequence, recognized wherever it appears rather than
after an escape character (~, ---).
Implementations§
Source§impl CallableKind
impl CallableKind
Sourcepub fn callable_type(self) -> FlmCallableType
pub fn callable_type(self) -> FlmCallableType
Returns the callable type of the FLM language (FlmCallableType)
under which a name of this kind is registered in a techy package.
Trait Implementations§
Source§impl Clone for CallableKind
impl Clone for CallableKind
impl Copy for CallableKind
Source§impl Debug for CallableKind
impl Debug for CallableKind
Source§impl Display for CallableKind
impl Display for CallableKind
impl Eq for CallableKind
Source§impl Hash for CallableKind
impl Hash for CallableKind
Source§impl JsonSchema for CallableKind
impl JsonSchema for CallableKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for CallableKind
impl Ord for CallableKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CallableKind
impl PartialEq for CallableKind
Source§impl PartialOrd for CallableKind
impl PartialOrd for CallableKind
Source§impl Serialize for CallableKind
impl Serialize for CallableKind
impl StructuralPartialEq for CallableKind
Auto Trait Implementations§
impl Forget for CallableKind
impl Freeze for CallableKind
impl Move for CallableKind
impl RefUnwindSafe for CallableKind
impl Send for CallableKind
impl Sync for CallableKind
impl Unpin for CallableKind
impl UnsafeUnpin for CallableKind
impl UnwindSafe for CallableKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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 more