Skip to main content

Tag

Trait Tag 

Source
pub trait Tag {
    // Required methods
    fn key(&self) -> &str;
    fn value(&self) -> &str;
}

Required Methods§

Source

fn key(&self) -> &str

Source

fn value(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Tag for (String, String)

Source§

fn key(&self) -> &str

Source§

fn value(&self) -> &str

Implementors§