Struct icu_capi::script::ffi::ICU4XScriptWithExtensionsBorrowed
source · pub struct ICU4XScriptWithExtensionsBorrowed<'a>(pub ScriptWithExtensionsBorrowed<'a>);
Expand description
A slightly faster ICU4XScriptWithExtensions object
Tuple Fields§
§0: ScriptWithExtensionsBorrowed<'a>
Implementations§
source§impl<'a> ICU4XScriptWithExtensionsBorrowed<'a>
impl<'a> ICU4XScriptWithExtensionsBorrowed<'a>
sourcepub fn get_script_val(&self, code_point: u32) -> u16
pub fn get_script_val(&self, code_point: u32) -> u16
Get the Script property value for a code point
sourcepub fn get_script_extensions_val(
&self,
code_point: u32,
) -> Box<ICU4XScriptExtensionsSet<'a>>
pub fn get_script_extensions_val( &self, code_point: u32, ) -> Box<ICU4XScriptExtensionsSet<'a>>
Get the Script property value for a code point
sourcepub fn has_script(&self, code_point: u32, script: u16) -> bool
pub fn has_script(&self, code_point: u32, script: u16) -> bool
Check if the Script_Extensions property of the given code point covers the given script
sourcepub fn get_script_extensions_set(
&self,
script: u16,
) -> Box<ICU4XCodePointSetData>
pub fn get_script_extensions_set( &self, script: u16, ) -> Box<ICU4XCodePointSetData>
Build the CodePointSetData corresponding to a codepoints matching a particular script in their Script_Extensions
Auto Trait Implementations§
impl<'a> Freeze for ICU4XScriptWithExtensionsBorrowed<'a>
impl<'a> RefUnwindSafe for ICU4XScriptWithExtensionsBorrowed<'a>
impl<'a> Send for ICU4XScriptWithExtensionsBorrowed<'a>
impl<'a> Sync for ICU4XScriptWithExtensionsBorrowed<'a>
impl<'a> Unpin for ICU4XScriptWithExtensionsBorrowed<'a>
impl<'a> UnwindSafe for ICU4XScriptWithExtensionsBorrowed<'a>
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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more