Struct swash::text::Properties
source · pub struct Properties(/* private fields */);
Expand description
Compact, constant time reference to Unicode properties for a character.
Implementations§
source§impl Properties
impl Properties
sourcepub fn combining_class(self) -> u8
pub fn combining_class(self) -> u8
Returns the canonical combining class of the character.
sourcepub fn bidi_class(self) -> BidiClass
pub fn bidi_class(self) -> BidiClass
Returns the bidirectional type of the character.
sourcepub fn joining_type(self) -> JoiningType
pub fn joining_type(self) -> JoiningType
Returns the joining type of the character.
sourcepub fn cluster_break(self) -> ClusterBreak
pub fn cluster_break(self) -> ClusterBreak
Returns the cluster break property for the character.
sourcepub fn word_break(self) -> WordBreak
pub fn word_break(self) -> WordBreak
Returns the word break property for the character.
sourcepub fn line_break(self) -> LineBreak
pub fn line_break(self) -> LineBreak
Returns the line break property for the character.
sourcepub fn is_extended_pictographic(self) -> bool
pub fn is_extended_pictographic(self) -> bool
Returns true if the character is an extended pictographic symbol.
sourcepub fn is_open_bracket(self) -> bool
pub fn is_open_bracket(self) -> bool
Returns true if the character is an opening bracket.
sourcepub fn is_close_bracket(self) -> bool
pub fn is_close_bracket(self) -> bool
Returns true if the character is a closing bracket.
Trait Implementations§
source§impl Clone for Properties
impl Clone for Properties
source§fn clone(&self) -> Properties
fn clone(&self) -> Properties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for Properties
impl Default for Properties
source§fn default() -> Properties
fn default() -> Properties
Returns the “default value” for a type. Read more
source§impl From<&CharInfo> for Properties
impl From<&CharInfo> for Properties
source§impl From<&Properties> for CharInfo
impl From<&Properties> for CharInfo
source§fn from(p: &Properties) -> Self
fn from(p: &Properties) -> Self
Converts to this type from the input type.
source§impl From<&char> for Properties
impl From<&char> for Properties
source§impl From<&u32> for Properties
impl From<&u32> for Properties
source§impl From<CharInfo> for Properties
impl From<CharInfo> for Properties
source§impl From<Properties> for CharInfo
impl From<Properties> for CharInfo
source§fn from(p: Properties) -> Self
fn from(p: Properties) -> Self
Converts to this type from the input type.
source§impl From<char> for Properties
impl From<char> for Properties
source§impl From<u32> for Properties
impl From<u32> for Properties
source§impl PartialEq for Properties
impl PartialEq for Properties
impl Copy for Properties
impl Eq for Properties
impl StructuralPartialEq for Properties
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)