pub enum ArgListData {
Codes(String),
List(Vec<ArgData>),
}Expand description
The argument list of a macro or environment declared in settings given as
data, written either as one text in which each character is one argument
code ("[{"), or as a list whose entries are each a code or an argument’s
map (ArgData).
arg_defs converts it into argument declarations;
deserialize_arg_list reads a settings field of type Vec<ArgDef> in any
of the shapes. The module documentation describes the shapes and
the forms of an argument’s syntax.
Variants§
Codes(String)
One text in which each character is one argument code: "[{{".
List(Vec<ArgData>)
A list of arguments, each an argument code or a map.
Implementations§
Source§impl ArgListData
impl ArgListData
Sourcepub fn arg_defs(self) -> Result<Vec<ArgDef>, ArgListError>
pub fn arg_defs(self) -> Result<Vec<ArgDef>, ArgListError>
Converts the list into argument declarations, in the order the arguments are written.
§Errors
An ArgListError for the first entry that is not an argument code,
that lacks the characters its code letter requires, or that is a map
giving both a code and a structured syntax, or neither: the entry’s
ArgDataError with its position.
Trait Implementations§
Source§impl Clone for ArgListData
impl Clone for ArgListData
Source§impl Debug for ArgListData
impl Debug for ArgListData
Source§impl<'de> Deserialize<'de> for ArgListData
impl<'de> Deserialize<'de> for ArgListData
Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> Result<ArgListData, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> Result<ArgListData, D::Error>
impl Eq for ArgListData
Source§impl JsonSchema for ArgListData
impl JsonSchema for ArgListData
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 PartialEq for ArgListData
impl PartialEq for ArgListData
Source§impl Serialize for ArgListData
impl Serialize for ArgListData
impl StructuralPartialEq for ArgListData
Auto Trait Implementations§
impl !RefUnwindSafe for ArgListData
impl !UnwindSafe for ArgListData
impl Forget for ArgListData
impl Freeze for ArgListData
impl Move for ArgListData
impl Send for ArgListData
impl Sync for ArgListData
impl Unpin for ArgListData
impl UnsafeUnpin for ArgListData
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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