Struct rustybuzz::UnicodeBuffer
source · [−]pub struct UnicodeBuffer(_);
Expand description
A buffer that contains an input string ready for shaping.
Implementations
sourceimpl UnicodeBuffer
impl UnicodeBuffer
sourcepub fn new() -> UnicodeBuffer
pub fn new() -> UnicodeBuffer
Create a new UnicodeBuffer
.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the length of the data of the buffer.
This corresponds to the number of unicode codepoints contained in the buffer.
sourcepub fn set_direction(&mut self, direction: Direction)
pub fn set_direction(&mut self, direction: Direction)
Set the text direction of the Buffer
’s contents.
sourcepub fn set_script(&mut self, script: Script)
pub fn set_script(&mut self, script: Script)
Set the script from an ISO15924 tag.
sourcepub fn set_language(&mut self, lang: Language)
pub fn set_language(&mut self, lang: Language)
Set the buffer language.
sourcepub fn guess_segment_properties(&mut self)
pub fn guess_segment_properties(&mut self)
Guess the segment properties (direction, language, script) for the current buffer.
sourcepub fn set_cluster_level(&mut self, cluster_level: BufferClusterLevel)
pub fn set_cluster_level(&mut self, cluster_level: BufferClusterLevel)
Set the cluster level of the buffer.
sourcepub fn cluster_level(&self) -> BufferClusterLevel
pub fn cluster_level(&self) -> BufferClusterLevel
Retrieve the cluster level of the buffer.
sourcepub fn reset_clusters(&mut self)
pub fn reset_clusters(&mut self)
Resets clusters.
Trait Implementations
sourceimpl Debug for UnicodeBuffer
impl Debug for UnicodeBuffer
sourceimpl Default for UnicodeBuffer
impl Default for UnicodeBuffer
sourcefn default() -> UnicodeBuffer
fn default() -> UnicodeBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for UnicodeBuffer
impl Send for UnicodeBuffer
impl Sync for UnicodeBuffer
impl Unpin for UnicodeBuffer
impl UnwindSafe for UnicodeBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more