pub fn with_display_text<V>(&self, mut cb: impl FnMut(&str) -> V) -> V {
        match self {
            LabelText::Static(s) => cb(&s.string),
            LabelText::Localized(s) => cb(&s.localized_str()),
            LabelText::Dynamic(s) => cb(&s.resolved),
        }
    }
/// Call callback with the text that should be displayed.
Call callback with the text that should be displayed.
Call callback with the text that should be displayed .
pub fn with_display_text<V>(&self, mut cb: impl FnMut(&str) -> V) -> V {
        match self {
            LabelText::Static(s) => cb(&s.string),
            LabelText::Localized(s) => cb(&s.localized_str()),
            LabelText::Dynamic(s) => cb(&s.resolved),
        }
    }
pub fn with_display_text < V > ( & self , mut cb : impl FnMut ( & str ) -> V ) -> V { match self { LabelText :: Static ( s ) => cb ( & s . string ) , LabelText :: Localized ( s ) => cb ( & s . localized_str ( ) ) , LabelText :: Dynamic ( s ) => cb ( & s . resolved ) , } }
Call callback with the text that should be displayed.
Call callback with the text that should be displayed .
&self
cb
impl FnMut(&str) -> V
&self
cb
impl FnMut(&str) -> V