Trait i_slint_core::translations::FormatArgs

source ·
pub trait FormatArgs {
    type Output<'a>: Display
       where Self: 'a;

    // Required method
    fn from_index(&self, index: usize) -> Option<Self::Output<'_>>;

    // Provided method
    fn from_name(&self, _name: &str) -> Option<Self::Output<'_>> { ... }
}

Required Associated Types§

source

type Output<'a>: Display where Self: 'a

Required Methods§

source

fn from_index(&self, index: usize) -> Option<Self::Output<'_>>

Provided Methods§

source

fn from_name(&self, _name: &str) -> Option<Self::Output<'_>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Display> FormatArgs for [T]

source§

type Output<'a> = &'a T where T: 'a

source§

fn from_index(&self, index: usize) -> Option<&T>

source§

impl<const N: usize, T: Display> FormatArgs for [T; N]

source§

type Output<'a> = &'a T where T: 'a

source§

fn from_index(&self, index: usize) -> Option<&T>

Implementors§