[−][src]Enum csl::variables::NumberVariable
Variants
ChapterNumber
CollectionNumber
Edition
Issue
Number
NumberOfPages
NumberOfVolumes
Volume
Locator
Locator, Page and PageFirst, FRRN, and CiteNumber: These are technically meant to be standard variables in CSL 1.0.1, but the spec
requires us to treat them as numerics for <label plural="contextual">
anyway.
a cite-specific pinpointer within the item (e.g. a page number within a book, or a volume in a multi-volume work). Must be accompanied in the input data by a label indicating the locator type (see the Locators term list), which determines which term is rendered by cs:label when the “locator” variable is selected.
Page
range of pages the item (e.g. a journal article) covers in a container (e.g. a journal issue)
PageFirst
first page of the range of pages the item (e.g. a journal article) covers in a container (e.g. a journal issue)
FirstReferenceNoteNumber
number of a preceding note containing the first reference to the item. Assigned by the CSL processor. The variable holds no value for non-note-based styles, or when the item hasn’t been cited in any preceding notes.
CitationNumber
index (starting at 1) of the cited reference in the bibliography (generated by the CSL processor)
PublicationNumber
CSL-M only
Supplement
CSL-M only
Authority
CSL-M only
Methods
impl NumberVariable
[src]
pub fn should_replace_hyphens(self) -> bool
[src]
Trait Implementations
impl PartialEq<NumberVariable> for NumberVariable
[src]
fn eq(&self, other: &NumberVariable) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for NumberVariable
[src]
fn clone(&self) -> NumberVariable
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for NumberVariable
[src]
impl Copy for NumberVariable
[src]
impl AsRef<str> for NumberVariable
[src]
impl Debug for NumberVariable
[src]
impl Hash for NumberVariable
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for NumberVariable
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<NumberVariable, Self::Err>
[src]
impl EnumProperty for NumberVariable
[src]
Auto Trait Implementations
impl Unpin for NumberVariable
impl Send for NumberVariable
impl Sync for NumberVariable
impl UnwindSafe for NumberVariable
impl RefUnwindSafe for NumberVariable
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,