Trait libadwaita::subclass::prelude::SharedType
source · [−]pub trait SharedType: 'static + StaticType + Clone {
type RefCountedType: RefCounted;
const NAME: &'static str;
fn into_refcounted(self) -> Self::RefCountedType;
fn from_refcounted(this: Self::RefCountedType) -> Self;
}
Expand description
Trait for defining shared types.
Links together the type name with the type itself.
See register_shared_type
for registering an implementation of this trait
with the type system.
Associated Types
The inner refcounted type
Associated Constants
Required methods
fn into_refcounted(self) -> Self::RefCountedType
fn into_refcounted(self) -> Self::RefCountedType
Converts the SharedType into its inner RefCountedType
fn from_refcounted(this: Self::RefCountedType) -> Self
fn from_refcounted(this: Self::RefCountedType) -> Self
Constructs a SharedType from a RefCountedType