pub trait DefaultId {
type Ownership: Ownership;
// Required method
fn default_id() -> Id<Self, Self::Ownership>;
}
Required Associated Types§
Required Methods§
sourcefn default_id() -> Id<Self, Self::Ownership>
fn default_id() -> Id<Self, Self::Ownership>
The default Id
for a type.
On most objects the implementation would just be sending a message to
the new
selector.