pub unsafe trait DataType {
type Type: ToOwned + ?Sized;
// Required methods
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.
Required Associated Types§
Required Methods§
unsafe fn set(attr: &mut AttrValue, val: &Self::Type) -> Result<()>
unsafe fn get(attr: AttrValue) -> Result<<Self::Type as ToOwned>::Owned>
Object Safety§
This trait is not object safe.