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 Freeze for ScriptWithExtensions
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