pub struct AddressNotCharacters {
pub command: String,
}Expand description
The error that is reported when the address of \href, \url or \email is
not plain text (flm.href.address-not-characters).
The address that an author writes in one of these commands is always plain
text, because the address argument is read as raw text. Other content gets
into an address through a user definition whose template places one of its
arguments in the address. A call of such a definition must pass plain text in
this argument. For instance, if the template of \doi is
\href{https://doi.org/#1}{#1}, the call can be \doi{10.1000/xyz}.
Reported by the lowering rule of the command when it is invoked. No link is
made. \href expands to its text argument. \url and \email expand to the
display (display) of the address, computed from the text of the address
without its markup.
Fields§
§command: StringThe name of the command, without the backslash: href, url or email.
Implementations§
Source§impl AddressNotCharacters
impl AddressNotCharacters
Sourcepub fn new(command: impl Into<String>) -> Self
pub fn new(command: impl Into<String>) -> Self
Creates a AddressNotCharacters condition.
Trait Implementations§
Source§impl Clone for AddressNotCharacters
impl Clone for AddressNotCharacters
Source§impl Debug for AddressNotCharacters
impl Debug for AddressNotCharacters
Source§impl DiagnosticInfo for AddressNotCharacters
impl DiagnosticInfo for AddressNotCharacters
Source§const IDENTIFIER: &'static str = "flm.href.address-not-characters"
const IDENTIFIER: &'static str = "flm.href.address-not-characters"
<crate-or-lang>.<area>.<condition>. Read moreSource§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Source§impl Display for AddressNotCharacters
impl Display for AddressNotCharacters
impl Eq for AddressNotCharacters
Source§impl PartialEq for AddressNotCharacters
impl PartialEq for AddressNotCharacters
impl StructuralPartialEq for AddressNotCharacters
Auto Trait Implementations§
impl Forget for AddressNotCharacters
impl Freeze for AddressNotCharacters
impl Move for AddressNotCharacters
impl RefUnwindSafe for AddressNotCharacters
impl Send for AddressNotCharacters
impl Sync for AddressNotCharacters
impl Unpin for AddressNotCharacters
impl UnsafeUnpin for AddressNotCharacters
impl UnwindSafe for AddressNotCharacters
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<T> DiagnosticData for Twhere
T: DiagnosticInfo,
impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
DiagnosticInfo::identifier — for every
ordinary condition, the IDENTIFIER const).Source§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
DiagnosticInfo::serializable_data).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