use crate::containers::MaybeLoc;
use crate::Loc;
#[cfg(not(feature = "c-structures"))]
pub(crate) mod rust {
pub type Loc = super::Loc;
use super::IntoMaybeLoc;
impl IntoMaybeLoc for Loc {
fn into_maybe_ptr(self) -> crate::containers::MaybeLoc {
Some(self)
}
}
}
#[cfg(feature = "c-structures")]
pub(crate) mod c {
use super::MaybeLoc;
pub type Loc = super::Loc;
impl Loc {
}
use super::IntoMaybeLoc;
impl IntoMaybeLoc for Loc {
fn into_maybe_ptr(self) -> MaybeLoc {
use crate::containers::maybe_loc::MaybeLocSome;
MaybeLoc::some(self)
}
}
}
pub trait IntoMaybeLoc {
fn into_maybe_ptr(self) -> MaybeLoc
where
Self: Sized;
}