pub unsafe trait DataType {
type Type: ToOwned + ?Sized;
unsafe fn set(attr: &mut AttrValue, val: &Self::Type) -> Result<()>;
unsafe fn get(attr: AttrValue) -> Result<<Self::Type as ToOwned>::Owned>;
}
Expand description
A trait to get and set OCI attributes as rust types. You have no need to use this except implementing OciAttr
for your type.