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
sourceimpl 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>
) -> ScriptWithExtensions
pub fn from_data(
data: DataPayload<ScriptWithExtensionsPropertyV1Marker>
) -> ScriptWithExtensions
Construct a new one from loaded data
Typically it is preferable to use getters like load_script_with_extensions_unstable()
instead
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more