pub struct Named<T> {
pub value: T,
pub name: Ident,
}
Expand description
Helper struct to hold a value and the ident of its property.
Fields§
§value: T
The value.
name: Ident
The argument name.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Named<T>where
T: Freeze,
impl<T> RefUnwindSafe for Named<T>where
T: RefUnwindSafe,
impl<T> !Send for Named<T>
impl<T> !Sync for Named<T>
impl<T> Unpin for Named<T>where
T: Unpin,
impl<T> UnwindSafe for Named<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
Source§impl<T> FromPartial<T> for T
impl<T> FromPartial<T> for T
Source§fn join(
first: Option<SpannedValue<T>>,
second: SpannedValue<T>,
specified_twice_error: &str,
) -> Result<Option<SpannedValue<T>>>
fn join( first: Option<SpannedValue<T>>, second: SpannedValue<T>, specified_twice_error: &str, ) -> Result<Option<SpannedValue<T>>>
Defines how two arguments for the same parameter should be handled. Read more