[][src]Enum csl::variables::NumberVariable

pub enum NumberVariable {
    ChapterNumber,
    CollectionNumber,
    Edition,
    Issue,
    Number,
    NumberOfPages,
    NumberOfVolumes,
    Volume,
    Locator,
    Page,
    PageFirst,
    FirstReferenceNoteNumber,
    CitationNumber,
    PublicationNumber,
    Supplement,
    Authority,
}

Variants

ChapterNumberCollectionNumberEditionIssueNumberNumberOfPagesNumberOfVolumesVolumeLocator

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]

Trait Implementations

impl PartialEq<NumberVariable> for NumberVariable[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl AsRef<str> for NumberVariable[src]

impl Clone for 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 Debug for NumberVariable[src]

impl Hash for NumberVariable[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

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.

impl EnumProperty for NumberVariable[src]

fn get_int(&self, &str) -> Option<usize>[src]

fn get_bool(&self, &str) -> Option<bool>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]