utf8proc_property_struct

Struct utf8proc_property_struct 

Source
#[repr(C, align(4))]
pub struct utf8proc_property_struct { pub category: utf8proc_propval_t, pub combining_class: utf8proc_propval_t, pub bidi_class: utf8proc_propval_t, pub decomp_type: utf8proc_propval_t, pub decomp_seqindex: utf8proc_uint16_t, pub casefold_seqindex: utf8proc_uint16_t, pub uppercase_seqindex: utf8proc_uint16_t, pub lowercase_seqindex: utf8proc_uint16_t, pub titlecase_seqindex: utf8proc_uint16_t, pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>, pub __bindgen_padding_0: u16, }
Expand description

Struct containing information about a codepoint.

Fields§

§category: utf8proc_propval_t

Unicode category. @see utf8proc_category_t.

§combining_class: utf8proc_propval_t§bidi_class: utf8proc_propval_t

Bidirectional class. @see utf8proc_bidi_class_t.

§decomp_type: utf8proc_propval_t

@anchor Decomposition type. @see utf8proc_decomp_type_t.

§decomp_seqindex: utf8proc_uint16_t§casefold_seqindex: utf8proc_uint16_t§uppercase_seqindex: utf8proc_uint16_t§lowercase_seqindex: utf8proc_uint16_t§titlecase_seqindex: utf8proc_uint16_t§_bitfield_align_1: [u16; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§__bindgen_padding_0: u16

Implementations§

Source§

impl utf8proc_property_struct

Source

pub fn comb_index(&self) -> utf8proc_uint16_t

Source

pub fn set_comb_index(&mut self, val: utf8proc_uint16_t)

Source

pub unsafe fn comb_index_raw(this: *const Self) -> utf8proc_uint16_t

Source

pub unsafe fn set_comb_index_raw(this: *mut Self, val: utf8proc_uint16_t)

Source

pub fn comb_length(&self) -> utf8proc_uint16_t

Source

pub fn set_comb_length(&mut self, val: utf8proc_uint16_t)

Source

pub unsafe fn comb_length_raw(this: *const Self) -> utf8proc_uint16_t

Source

pub unsafe fn set_comb_length_raw(this: *mut Self, val: utf8proc_uint16_t)

Source

pub fn comb_issecond(&self) -> utf8proc_uint16_t

Source

pub fn set_comb_issecond(&mut self, val: utf8proc_uint16_t)

Source

pub unsafe fn comb_issecond_raw(this: *const Self) -> utf8proc_uint16_t

Source

pub unsafe fn set_comb_issecond_raw(this: *mut Self, val: utf8proc_uint16_t)

Source

pub fn bidi_mirrored(&self) -> c_uint

Source

pub fn set_bidi_mirrored(&mut self, val: c_uint)

Source

pub unsafe fn bidi_mirrored_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_bidi_mirrored_raw(this: *mut Self, val: c_uint)

Source

pub fn comp_exclusion(&self) -> c_uint

Source

pub fn set_comp_exclusion(&mut self, val: c_uint)

Source

pub unsafe fn comp_exclusion_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_comp_exclusion_raw(this: *mut Self, val: c_uint)

Source

pub fn ignorable(&self) -> c_uint

Source

pub fn set_ignorable(&mut self, val: c_uint)

Source

pub unsafe fn ignorable_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_ignorable_raw(this: *mut Self, val: c_uint)

Source

pub fn control_boundary(&self) -> c_uint

Source

pub fn set_control_boundary(&mut self, val: c_uint)

Source

pub unsafe fn control_boundary_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_control_boundary_raw(this: *mut Self, val: c_uint)

Source

pub fn charwidth(&self) -> c_uint

Source

pub fn set_charwidth(&mut self, val: c_uint)

Source

pub unsafe fn charwidth_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_charwidth_raw(this: *mut Self, val: c_uint)

Source

pub fn ambiguous_width(&self) -> c_uint

Source

pub fn set_ambiguous_width(&mut self, val: c_uint)

Source

pub unsafe fn ambiguous_width_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_ambiguous_width_raw(this: *mut Self, val: c_uint)

Source

pub fn pad(&self) -> c_uint

Source

pub fn set_pad(&mut self, val: c_uint)

Source

pub unsafe fn pad_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_pad_raw(this: *mut Self, val: c_uint)

Source

pub fn boundclass(&self) -> c_uint

Source

pub fn set_boundclass(&mut self, val: c_uint)

Source

pub unsafe fn boundclass_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_boundclass_raw(this: *mut Self, val: c_uint)

Source

pub fn indic_conjunct_break(&self) -> c_uint

Source

pub fn set_indic_conjunct_break(&mut self, val: c_uint)

Source

pub unsafe fn indic_conjunct_break_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_indic_conjunct_break_raw(this: *mut Self, val: c_uint)

Source

pub fn new_bitfield_1( comb_index: utf8proc_uint16_t, comb_length: utf8proc_uint16_t, comb_issecond: utf8proc_uint16_t, bidi_mirrored: c_uint, comp_exclusion: c_uint, ignorable: c_uint, control_boundary: c_uint, charwidth: c_uint, ambiguous_width: c_uint, pad: c_uint, boundclass: c_uint, indic_conjunct_break: c_uint, ) -> __BindgenBitfieldUnit<[u8; 4]>

Trait Implementations§

Source§

impl Clone for utf8proc_property_struct

Source§

fn clone(&self) -> utf8proc_property_struct

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for utf8proc_property_struct

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for utf8proc_property_struct

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.