MCPcopy Create free account
hub / github.com/awslabs/llrt / algorithm

Method algorithm

modules/llrt_crypto/src/subtle/crypto_key.rs:96–103  ·  view source on GitHub ↗
(&mut self, ctx: Ctx<'js>)

Source from the content-addressed store, hash-verified

94#[rquickjs::methods]
95impl<'js> CryptoKey<'js> {
96 #[qjs(constructor)]
97 fn constructor(ctx: Ctx<'_>) -> Result<Self> {
98 Err(Exception::throw_type(&ctx, "Illegal constructor"))
99 }
100
101 #[qjs(get, rename = "type")]
102 pub fn get_type(&self) -> &str {
103 self.kind.as_str()
104 }
105
106 #[qjs(get)]

Callers

nothing calls this directly

Calls 3

as_objectMethod · 0.80
into_valueMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected