MCPcopy Index your code
hub / github.com/cedar-policy/cedar-java / Object

Interface Object

CedarJavaFFI/src/objects.rs:33–36  ·  view source on GitHub ↗

General trait for anything that's a wrapper around a java object. This lets us dynamically cast from a Java Object to our typed wrapper

Source from the content-addressed store, hash-verified

31/// General trait for anything that's a wrapper around a java object.
32/// This lets us dynamically cast from a Java Object to our typed wrapper
33pub trait Object<'a>: Sized + AsRef<JObject<'a>> {
34 /// Dynamically cast from an untyped object to our typed wrappers
35 fn cast(env: &mut JNIEnv<'a>, obj: JObject<'a>) -> Result<Self>;
36}
37
38impl<'a> Object<'a> for JString<'a> {
39 fn cast(env: &mut JNIEnv<'a>, obj: JObject<'a>) -> Result<Self> {

Callers 15

raise_npeFunction · 0.85
addMethod · 0.85
jni_failedFunction · 0.85
parse_policy_internalFunction · 0.85
parse_policies_internalFunction · 0.85
create_java_policy_setFunction · 0.85

Implementers 1

objects.rsCedarJavaFFI/src/objects.rs

Calls

no outgoing calls

Tested by

no test coverage detected