pub struct OverrideDef {
pub owner: FeatureName,
pub kind: CallableKind,
pub name: Name,
}Expand description
An override: the statement, by the feature owner, that its definition of
name replaces the definitions other features give that name.
Registration order decides which of several definitions of one name
applies, because a later feature’s techy package is innermost on the scope
stack. Two features that define one name in one parsing mode are reported
as a MintError::Clash, unless the feature
order places the feature registered last explicitly after the others
(crate::core::registry::order), or that feature declares an override.
An override thus prevents that report in each mode where owner is the
feature registered last among those that define the name; elsewhere it is
not consulted and has no effect. A feature declares an override with
FeatureBuilder::override_callable.
Fields§
§owner: FeatureNameThe feature whose definition replaces the others.
kind: CallableKindThe callable kind of the redefined name.
name: NameThe redefined name, without the escape character, or the trigger of a special character sequence.
Trait Implementations§
Source§impl Clone for OverrideDef
impl Clone for OverrideDef
Source§impl Debug for OverrideDef
impl Debug for OverrideDef
impl Eq for OverrideDef
Source§impl PartialEq for OverrideDef
impl PartialEq for OverrideDef
impl StructuralPartialEq for OverrideDef
Auto Trait Implementations§
impl Forget for OverrideDef
impl Freeze for OverrideDef
impl Move for OverrideDef
impl RefUnwindSafe for OverrideDef
impl Send for OverrideDef
impl Sync for OverrideDef
impl Unpin for OverrideDef
impl UnsafeUnpin for OverrideDef
impl UnwindSafe for OverrideDef
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> 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