pub struct EnumFieldAccessor<T>(/* private fields */)
where
T: Enum;
Implementations§
Source§impl<T> EnumFieldAccessor<T>where
T: Enum,
impl<T> EnumFieldAccessor<T>where
T: Enum,
pub fn do_get( property_path: &PropertyPath, data_container: DataContainerRef<'_>, ) -> Result<T, DataSetErrorWithBacktrace>
pub fn do_set( property_path: &PropertyPath, data_container: &mut DataContainerRefMut<'_>, value: T, ) -> Result<Option<Value>, DataSetErrorWithBacktrace>
pub fn get( &self, data_container: DataContainerRef<'_>, ) -> Result<T, DataSetErrorWithBacktrace>
pub fn set( &self, data_container: &mut DataContainerRefMut<'_>, value: T, ) -> Result<Option<Value>, DataSetErrorWithBacktrace>
Trait Implementations§
Source§impl<T> FieldAccessor for EnumFieldAccessor<T>where
T: Enum,
impl<T> FieldAccessor for EnumFieldAccessor<T>where
T: Enum,
fn new(property_path: PropertyPath) -> EnumFieldAccessor<T>
Auto Trait Implementations§
impl<T> Freeze for EnumFieldAccessor<T>
impl<T> RefUnwindSafe for EnumFieldAccessor<T>where
T: RefUnwindSafe,
impl<T> Send for EnumFieldAccessor<T>where
T: Send,
impl<T> Sync for EnumFieldAccessor<T>where
T: Sync,
impl<T> Unpin for EnumFieldAccessor<T>where
T: Unpin,
impl<T> UnwindSafe for EnumFieldAccessor<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more