pub struct Subscript<N = NumericSubscript> {
pub num: Option<N>,
pub side: Option<SidedSubscript>,
}Expand description
A subscripts
Fields§
§num: Option<N>The numeric part of the subscript
side: Option<SidedSubscript>The sided part of the subscript
Implementations§
Trait Implementations§
Source§impl<'de, N> Deserialize<'de> for Subscript<N>
impl<'de, N> Deserialize<'de> for Subscript<N>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<N: Ord> Ord for Subscript<N>
impl<N: Ord> Ord for Subscript<N>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<N: PartialOrd> PartialOrd for Subscript<N>
impl<N: PartialOrd> PartialOrd for Subscript<N>
impl<N: Copy> Copy for Subscript<N>
impl<N: Eq> Eq for Subscript<N>
impl<N> StructuralPartialEq for Subscript<N>
Auto Trait Implementations§
impl<N> Freeze for Subscript<N>where
N: Freeze,
impl<N> RefUnwindSafe for Subscript<N>where
N: RefUnwindSafe,
impl<N> Send for Subscript<N>where
N: Send,
impl<N> Sync for Subscript<N>where
N: Sync,
impl<N> Unpin for Subscript<N>where
N: Unpin,
impl<N> UnwindSafe for Subscript<N>where
N: UnwindSafe,
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
Mutably borrows from an owned value. Read more