[][src]Enum harfbuzz_rs::TypedBuffer

pub enum TypedBuffer {
    Unicode(UnicodeBuffer),
    Glyphs(GlyphBuffer),
}

This type provides an interface to create one of the buffer types from a raw harfbuzz pointer.

Variants

Unicode(UnicodeBuffer)

Contains a UnicodeBuffer

Glyphs(GlyphBuffer)

Contains a GlyphBuffer

Implementations

impl TypedBuffer[src]

pub unsafe fn take_from_raw(raw: *mut hb_buffer_t) -> Option<TypedBuffer>[src]

Takes ownership of the raw hb_buffer_t object and converts it to are TypedBuffer. If no safe conversion is possible returns None.

Safety

Marked as unsafe because it acceses a raw pointer. Internally calls Owned::from_raw and therefore the same ownership considerations apply.

Trait Implementations

impl Debug for TypedBuffer[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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.