pub struct FieldOptic {
pub name: &'static str,
pub kind: OpticKind,
}Expand description
Metadata for a single optic-annotated field.
Fields§
§name: &'static strThe field name as written in the struct.
kind: OpticKindWhich optic kind the field was annotated with.
Trait Implementations§
Source§impl Clone for FieldOptic
impl Clone for FieldOptic
Source§fn clone(&self) -> FieldOptic
fn clone(&self) -> FieldOptic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FieldOptic
impl RefUnwindSafe for FieldOptic
impl Send for FieldOptic
impl Sync for FieldOptic
impl Unpin for FieldOptic
impl UnsafeUnpin for FieldOptic
impl UnwindSafe for FieldOptic
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