[−][src]Enum harfbuzz_rs::TypedBuffer
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
Auto Trait Implementations
impl RefUnwindSafe for TypedBuffer
impl !Send for TypedBuffer
impl !Sync for TypedBuffer
impl Unpin for TypedBuffer
impl UnwindSafe for TypedBuffer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,