MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / cast

Method cast

CedarJavaFFI/src/objects.rs:39–42  ·  view source on GitHub ↗
(env: &mut JNIEnv<'a>, obj: JObject<'a>)

Source from the content-addressed store, hash-verified

37
38impl<'a> Object<'a> for JString<'a> {
39 fn cast(env: &mut JNIEnv<'a>, obj: JObject<'a>) -> Result<Self> {
40 assert_is_class(env, &obj, "java/lang/String")?;
41 Ok(obj.into())
42 }
43}
44
45/// Typed wrapper around EntityTypeNames

Callers

nothing calls this directly

Calls 6

assert_is_classFunction · 0.85
get_object_refFunction · 0.85
jstr_list_to_rust_vecFunction · 0.85
iterMethod · 0.80
containsMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected