#[non_exhaustive]pub enum NumberVariable {
Show 20 variants
Volume,
Issue,
Pages,
Edition,
ChapterNumber,
CollectionNumber,
NumberOfPages,
NumberOfVolumes,
CitationNumber,
FirstReferenceNoteNumber,
CitationLabel,
Number,
DocketNumber,
PatentNumber,
StandardNumber,
ReportNumber,
PartNumber,
SupplementNumber,
PrintingNumber,
Custom(String),
}Expand description
Number variables.
Use number: when the value is treated as a number by the style:
numeric labels, numeric-specific formatting, ordinals, roman numerals, or
locator-aware punctuation. Use variable: instead when the field should be
passed through as plain text without number formatting semantics.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Volume
Issue
Pages
Edition
ChapterNumber
CollectionNumber
NumberOfPages
NumberOfVolumes
CitationNumber
FirstReferenceNoteNumber
First-occurrence note number for the cited reference (note styles only). Populated from the document processor; omitted (not rendered) when the citation is not in a subsequent position or no first-note number is available.
CitationLabel
Number
DocketNumber
PatentNumber
StandardNumber
ReportNumber
PartNumber
SupplementNumber
PrintingNumber
Custom(String)
A custom numbering variable rendered from an arbitrary numbering kind.
Implementations§
Trait Implementations§
Source§impl Clone for NumberVariable
impl Clone for NumberVariable
Source§fn clone(&self) -> NumberVariable
fn clone(&self) -> NumberVariable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumberVariable
impl Debug for NumberVariable
Source§impl Default for NumberVariable
impl Default for NumberVariable
Source§fn default() -> NumberVariable
fn default() -> NumberVariable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NumberVariable
impl<'de> Deserialize<'de> for NumberVariable
Source§fn deserialize<D>(
deserializer: D,
) -> Result<NumberVariable, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<NumberVariable, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NumberVariable
Source§impl Hash for NumberVariable
impl Hash for NumberVariable
Source§impl PartialEq for NumberVariable
impl PartialEq for NumberVariable
Source§fn eq(&self, other: &NumberVariable) -> bool
fn eq(&self, other: &NumberVariable) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NumberVariable
impl Serialize for NumberVariable
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 NumberVariable
impl RefUnwindSafe for NumberVariable
impl Send for NumberVariable
impl Sync for NumberVariable
impl Unpin for NumberVariable
impl UnsafeUnpin for NumberVariable
impl UnwindSafe for NumberVariable
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
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§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
Compare self to
key and return true if they are equal.