use super::Pointer;
use core::{
ptr::NonNull,
marker::PhantomCovariantLifetime
};
impl<Type> const From<NonNull<Type>> for Pointer<'static, Type> {
fn from(value: NonNull<Type>) -> Self {return Self {
to: Some(value),
lifetime: PhantomCovariantLifetime::new()
}}
}
impl<Type> const From<Option<NonNull<Type>>> for Pointer<'static, Type> {
fn from(value: Option<NonNull<Type>>) -> Self {return Self {
to: value,
lifetime: PhantomCovariantLifetime::new()
}}
}