Struct attribute_derive::from_partial::Partial
source · pub struct Partial<T>(pub T);
Expand description
Utility struct to avoid duplicate trait definition when using Self<A>
for
<Self<B> as BaseAttribute>::Partial
.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: FromPartial<P>, P> FromPartial<Partial<FlagOrValue<P>>> for FlagOrValue<T>
impl<T: FromPartial<P>, P> FromPartial<Partial<FlagOrValue<P>>> for FlagOrValue<T>
source§fn from_option(
partial: Option<Partial<FlagOrValue<P>>>,
_: &str,
) -> Result<Self>
fn from_option( partial: Option<Partial<FlagOrValue<P>>>, _: &str, ) -> Result<Self>
source§fn join(
first: Option<SpannedValue<Partial<FlagOrValue<P>>>>,
second: SpannedValue<Partial<FlagOrValue<P>>>,
specified_twice_error: &str,
) -> Result<Option<SpannedValue<Partial<FlagOrValue<P>>>>>
fn join( first: Option<SpannedValue<Partial<FlagOrValue<P>>>>, second: SpannedValue<Partial<FlagOrValue<P>>>, specified_twice_error: &str, ) -> Result<Option<SpannedValue<Partial<FlagOrValue<P>>>>>
Defines how two arguments for the same parameter should be handled. Read more
source§impl<T: FromPartial<P>, P> FromPartial<Partial<Option<P>>> for Option<T>
impl<T: FromPartial<P>, P> FromPartial<Partial<Option<P>>> for Option<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
source§impl<T: FromPartial<P>, P> FromPartial<Partial<Vec<P>>> for Vec<T>
impl<T: FromPartial<P>, P> FromPartial<Partial<Vec<P>>> for Vec<T>
Auto Trait Implementations§
impl<T> Freeze for Partial<T>where
T: Freeze,
impl<T> RefUnwindSafe for Partial<T>where
T: RefUnwindSafe,
impl<T> Send for Partial<T>where
T: Send,
impl<T> Sync for Partial<T>where
T: Sync,
impl<T> Unpin for Partial<T>where
T: Unpin,
impl<T> UnwindSafe for Partial<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