qrcode::render::string

Trait Element

Source
pub trait Element: Copy {
    // Required methods
    fn default_color(color: Color) -> Self;
    fn strlen(self) -> usize;
    fn append_to_string(self, string: &mut String);
}

Required Methods§

Source

fn default_color(color: Color) -> Self

Source

fn strlen(self) -> usize

Source

fn append_to_string(self, string: &mut String)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Element for char

Source§

fn default_color(color: Color) -> Self

Source§

fn strlen(self) -> usize

Source§

fn append_to_string(self, string: &mut String)

Source§

impl<'a> Element for &'a str

Source§

fn default_color(color: Color) -> Self

Source§

fn strlen(self) -> usize

Source§

fn append_to_string(self, string: &mut String)

Implementors§