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
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes