Struct icu_properties::script::ScriptWithExtensions
source · pub struct ScriptWithExtensions { /* private fields */ }
Expand description
A wrapper around script extensions data. Can be obtained via load_script_with_extensions_unstable()
and
related getters.
Most useful methods are on ScriptWithExtensionsBorrowed
obtained by calling ScriptWithExtensions::as_borrowed()
Implementations§
source§impl ScriptWithExtensions
impl ScriptWithExtensions
sourcepub fn as_borrowed(&self) -> ScriptWithExtensionsBorrowed<'_>
pub fn as_borrowed(&self) -> ScriptWithExtensionsBorrowed<'_>
Construct a borrowed version of this type that can be queried.
This avoids a potential small underlying cost per API call (ex: contains()
) by consolidating it
up front.
sourcepub fn from_data(
data: DataPayload<ScriptWithExtensionsPropertyV1Marker>
) -> Self
pub fn from_data( data: DataPayload<ScriptWithExtensionsPropertyV1Marker> ) -> Self
Construct a new one from loaded data
Typically it is preferable to use getters like load_script_with_extensions_unstable()
instead
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ScriptWithExtensions
impl !Send for ScriptWithExtensions
impl !Sync for ScriptWithExtensions
impl Unpin for ScriptWithExtensions
impl UnwindSafe for ScriptWithExtensions
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