pub enum ArgShape {
Right {
pattern: ArgPattern,
},
Left1,
InfixGreedy,
}
Expand description
Shape of arguments with direction to match since.
Note: We currently only support
Direction::Right
with anyArgPattern
Direction::Left
withArgPattern::FixedLenTerm(1)
Direction::Infix
withArgPattern::Greedy
Variants§
Right
A command that associates with the right side of items.
E.g. \hat
Fields
§
pattern: ArgPattern
The pattern to match the arguments
Left1
A command that associates with the left side of items, and with
ArgPattern::FixedLenTerm(1)
.
E.g. \limits
InfixGreedy
A command that associates with both side of items, and with
ArgPattern::Greedy
, also known as infix operators.
E.g. \over
Trait Implementations§
Source§impl Archive for ArgShapewhere
ArgPattern: Archive,
impl Archive for ArgShapewhere
ArgPattern: Archive,
Source§type Archived = ArchivedArgShape
type Archived = ArchivedArgShape
The archived representation of this type. Read more
Source§type Resolver = ArgShapeResolver
type Resolver = ArgShapeResolver
The resolver for this type. It must contain all the additional information from serializing
needed to make the archived type from the normal type.
Source§impl<'de> Deserialize<'de> for ArgShape
impl<'de> Deserialize<'de> for ArgShape
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArgShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArgShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<__D> Deserialize<ArgShape, __D> for <ArgShape as Archive>::Archivedwhere
__D: Fallible + ?Sized,
ArgPattern: Archive,
<ArgPattern as Archive>::Archived: Deserialize<ArgPattern, __D>,
impl<__D> Deserialize<ArgShape, __D> for <ArgShape as Archive>::Archivedwhere
__D: Fallible + ?Sized,
ArgPattern: Archive,
<ArgPattern as Archive>::Archived: Deserialize<ArgPattern, __D>,
Source§impl Serialize for ArgShape
impl Serialize for ArgShape
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ArgShape
impl RefUnwindSafe for ArgShape
impl Send for ArgShape
impl Sync for ArgShape
impl Unpin for ArgShape
impl UnwindSafe for ArgShape
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive
, it may be unsized. Read moreSource§type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
Source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata,
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )
Creates the archived version of the metadata for this value at the given position and writes
it to the given output. Read more
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.