pub trait OwnerObjectDesc {
// Required method
fn owner(&self) -> &Option<ObjectId>;
}Expand description
有主对象
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl OwnerObjectDesc for SubDescNone
impl<T> OwnerObjectDesc for NamedObjectDesc<T>
§NamedObjectDesc 的 OwnerObjectDesc 自动实现
如果 T::OwnerType 实现了 OwnerObjectDesc
则自动为 NamedObjectDesc