[−][src]Struct rustybuzz::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]
pub fn default() -> UnicodeBuffer
[src]
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
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,
pub 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.
pub 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>,