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