[][src]Struct directwrite::localized_strings::LocalizedStrings

#[repr(transparent)]
pub struct LocalizedStrings { /* fields omitted */ }

Represents a collection of strings indexed by locale name.

Methods

impl LocalizedStrings[src]

pub fn count(&self) -> u32[src]

Gets the number of locales which have values for this string.

pub fn all_strings<'a>(
    &'a self
) -> impl Iterator<Item = LocalizedString<'a>> + 'a
[src]

Gets all localized strings in this collection.

pub fn get(&self, index: u32) -> Option<LocalizedString>[src]

Get the localized string value at the specified index.

pub fn get_by_name(&self, name: impl AsRef<OsStr>) -> Option<LocalizedString>[src]

Get the localized string value with the specified locale name.

Trait Implementations

impl Sync for LocalizedStrings[src]

impl Clone for LocalizedStrings[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for LocalizedStrings[src]

impl Debug for LocalizedStrings[src]

impl ComWrapper for LocalizedStrings[src]

type Interface = IDWriteLocalizedStrings

The raw interface type from winapi

Blanket Implementations

impl<T> FontKey for T where
    T: Send + Sync + 'static + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]