pub trait Resource:
IsSubject
+ IsPredicate
+ IsObject
+ IsGraph { }Expand description
Marker trait for opaque resource handles (e.g. interpretation indices).
Implement via impl_resource!, which also emits the four position-trait
impls so the type is usable in every position. The supertraits make
R: Resource propagate position-trait bounds automatically — concrete
Resource impls must also satisfy IsSubject, IsPredicate,
IsObject, and IsGraph, which impl_resource! handles.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".