[][src]Struct rustybuzz::UnicodeBuffer

pub struct UnicodeBuffer(_);

A buffer that contains an input string ready for shaping.

Implementations

impl UnicodeBuffer[src]

pub fn new() -> UnicodeBuffer[src]

Create a new UnicodeBuffer.

pub fn len(&self) -> usize[src]

Returns the length of the data of the buffer.

This corresponds to the number of unicode codepoints contained in the buffer.

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

Returns true if the buffer contains no elements.

pub fn push_str(&mut self, str: &str)[src]

Pushes a string to a buffer.

pub fn set_direction(&mut self, direction: Direction)[src]

Set the text direction of the Buffer's contents.

pub fn direction(&self) -> Direction[src]

Returns the Buffer's text direction.

pub fn set_script(&mut self, script: Script)[src]

Set the script from an ISO15924 tag.

pub fn script(&self) -> Script[src]

Get the ISO15924 script tag.

pub fn set_language(&mut self, lang: Language)[src]

Set the buffer language.

pub fn language(&self) -> Option<Language>[src]

Get the buffer language.

pub fn guess_segment_properties(&mut self)[src]

Guess the segment properties (direction, language, script) for the current buffer.

pub fn set_cluster_level(&mut self, cluster_level: BufferClusterLevel)[src]

Set the cluster level of the buffer.

pub fn cluster_level(&self) -> BufferClusterLevel[src]

Retrieve the cluster level of the buffer.

pub fn reset_clusters(&mut self)[src]

Resets clusters.

pub fn clear(&mut self)[src]

Clear the contents of the buffer.

Trait Implementations

impl Debug for UnicodeBuffer[src]

impl Default for UnicodeBuffer[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.