[][src]Enum imgui::FontAtlasRef

pub enum FontAtlasRef<'a> {
    Owned(&'a FontAtlas),
    Shared(&'a RefMut<'a, SharedFontAtlas>),
}

An immutably borrowed reference to a (possibly shared) font atlas

Variants

Owned(&'a FontAtlas)Shared(&'a RefMut<'a, SharedFontAtlas>)

Methods from Deref<Target = FontAtlas>

pub fn fonts(&self) -> Vec<FontId>[src]

pub fn get_font(&self, id: FontId) -> Option<&Font>[src]

pub fn is_built(&self) -> bool[src]

Returns true if the font atlas has been built

Trait Implementations

impl<'a> Deref for FontAtlasRef<'a>[src]

type Target = FontAtlas

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> !Send for FontAtlasRef<'a>

impl<'a> Unpin for FontAtlasRef<'a>

impl<'a> !Sync for FontAtlasRef<'a>

impl<'a> !UnwindSafe for FontAtlasRef<'a>

impl<'a> !RefUnwindSafe for FontAtlasRef<'a>

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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