//! To remind myself that `Self` needs to work in methods in `define_class!`, //! and hence whenever we name any of the types involved in this, we need to //! do it in a context where `Self` works. use objc2::rc::{Allocated, Retained}; use objc2::runtime::NSObject; use objc2::{define_class, ClassType};
trait GetSameType { type SameType: ?Sized;
}
impl<T: ?Sized> GetSameType for T { type SameType = T;
}
trait GetRetained { type RetainedType;
}
impl<T> GetRetained for T { type RetainedType = Retained<T>;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.