MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / string

Method string

crates/core/src/host/v8/string.rs:41–44  ·  view source on GitHub ↗

Converts the string to a V8 string.

(&'static self, scope: &PinScope<'scope, '_>)

Source from the content-addressed store, hash-verified

39
40 /// Converts the string to a V8 string.
41 pub(super) fn string<'scope>(&'static self, scope: &PinScope<'scope, '_>) -> LString<'scope> {
42 v8::String::new_from_onebyte_const(scope, &self.0)
43 .expect("`create_external_onebyte_const` should've asserted `.len() < kMaxLength`")
44 }
45
46 /// Converts the string to a V8 symbol using [`Symbol::for_api`].
47 pub(super) fn symbol<'scope>(&'static self, scope: &PinScope<'scope, '_>) -> Local<'scope, Symbol> {

Callers 15

index.tsFile · 0.80
schema.tsFile · 0.80
reducers.tsFile · 0.80
schema.tsFile · 0.80
index.tsFile · 0.80
schema.tsFile · 0.80
index.tsFile · 0.80
schema.tsFile · 0.80
index.tsFile · 0.80
schema.tsFile · 0.80
index.tsFile · 0.80
schema.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected