pub struct BuiltBy<T>where
T: Debug,{ /* private fields */ }
Expand description
Allows for adding “built by” info to non buildable objects
Implementations§
Source§impl<T> BuiltBy<T>where
T: Debug,
impl<T> BuiltBy<T>where
T: Debug,
Sourcepub fn new<B>(built_by: B, value: T) -> BuiltBy<T>where
B: IntoBuildable + 'static,
pub fn new<B>(built_by: B, value: T) -> BuiltBy<T>where
B: IntoBuildable + 'static,
Create a new buildable object
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Makes this into the inner value
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for BuiltBy<T>where
T: Freeze,
impl<T> !RefUnwindSafe for BuiltBy<T>
impl<T> Send for BuiltBy<T>where
T: Send,
impl<T> Sync for BuiltBy<T>where
T: Sync,
impl<T> Unpin for BuiltBy<T>where
T: Unpin,
impl<T> !UnwindSafe for BuiltBy<T>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B> GetBuildable for B
impl<B> GetBuildable for B
Source§fn as_buildable(&self) -> BuildableObject
fn as_buildable(&self) -> BuildableObject
Returns a dependency which contains the tasks which build this object.
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more