pub trait DefaultId {
    type Ownership: Ownership;

    fn default_id() -> Id<Self, Self::Ownership>Notable traits for Id<I, Owned>impl<I: Iterator + ?Sized> Iterator for Id<I, Owned>    type Item = I::Item;impl<T: Read + ?Sized> Read for Id<T, Owned>impl<T: Write + ?Sized> Write for Id<T, Owned>impl<T: Future + Unpin + ?Sized> Future for Id<T, Owned>    type Output = T::Output;;
}
Expand description

Helper trait to implement Default on types whoose default value is an Id.

Required Associated Types

Indicates whether the default value is mutable or immutable.

Required Methods

The default Id for a type.

On most objects the implementation would just be sending a message to the new selector.

Implementors