Struct icu_capi::script::ffi::ScriptWithExtensionsBorrowed
source · pub struct ScriptWithExtensionsBorrowed<'a>(pub ScriptWithExtensionsBorrowed<'a>);
Expand description
A slightly faster ScriptWithExtensions object
Tuple Fields§
§0: ScriptWithExtensionsBorrowed<'a>
Implementations§
source§impl<'a> ScriptWithExtensionsBorrowed<'a>
impl<'a> ScriptWithExtensionsBorrowed<'a>
sourcepub fn get_script_val(&self, ch: DiplomatChar) -> u16
pub fn get_script_val(&self, ch: DiplomatChar) -> u16
Get the Script property value for a code point Get the Script property value for a code point
sourcepub fn get_script_extensions_val(
&self,
ch: DiplomatChar,
) -> Box<ScriptExtensionsSet<'a>>
pub fn get_script_extensions_val( &self, ch: DiplomatChar, ) -> Box<ScriptExtensionsSet<'a>>
Get the Script property value for a code point
sourcepub fn has_script(&self, ch: DiplomatChar, script: u16) -> bool
pub fn has_script(&self, ch: DiplomatChar, 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<CodePointSetData>
pub fn get_script_extensions_set(&self, script: u16) -> Box<CodePointSetData>
Build the CodePointSetData corresponding to a codepoints matching a particular script in their Script_Extensions
Auto Trait Implementations§
impl<'a> Freeze for ScriptWithExtensionsBorrowed<'a>
impl<'a> RefUnwindSafe for ScriptWithExtensionsBorrowed<'a>
impl<'a> Send for ScriptWithExtensionsBorrowed<'a>
impl<'a> Sync for ScriptWithExtensionsBorrowed<'a>
impl<'a> Unpin for ScriptWithExtensionsBorrowed<'a>
impl<'a> UnwindSafe for ScriptWithExtensionsBorrowed<'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> 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