Trait CellValue

Source
pub trait CellValue<'url>: AsRef<str> {
    // Required methods
    fn perhaps_url(&self) -> Option<Cow<'url, str>>;
    fn perhaps_anchor_name(&self) -> Option<&KString>;
}

Required Methods§

Source

fn perhaps_url(&self) -> Option<Cow<'url, str>>

If appropriate for the type and instance, return a URL value

Source

fn perhaps_anchor_name(&self) -> Option<&KString>

If appropriate, generate an anchor

Trait Implementations§

Source§

impl<'t, 'url> CellValue<'url> for &dyn CellValue<'url>

Source§

fn perhaps_url(&self) -> Option<Cow<'url, str>>

If appropriate for the type and instance, return a URL value
Source§

fn perhaps_anchor_name(&self) -> Option<&KString>

If appropriate, generate an anchor

Implementations on Foreign Types§

Source§

impl<'t, 'url> CellValue<'url> for Cow<'t, str>

Source§

impl<'url> CellValue<'url> for &str

Source§

impl<'url> CellValue<'url> for &KString

Source§

impl<'url> CellValue<'url> for str

Source§

impl<'url> CellValue<'url> for KString

Source§

impl<'url> CellValue<'url> for String

Implementors§

Source§

impl<'s, 'url> CellValue<'url> for WithUrlOnDemand<'s, 'url>

Source§

impl<'t, 'url> CellValue<'url> for &dyn CellValue<'url>