struct CratesUniverseMacro<Name> {
name: Name,
fields: Vec<MacroOption>,
}
Expand description
crates_universe
exposes a few
macros that make it easier to define depedencies and aliases.
Fields§
§name: Name
§fields: Vec<MacroOption>
Implementations§
Source§impl<Name> CratesUniverseMacro<Name>
impl<Name> CratesUniverseMacro<Name>
pub fn normal(self) -> Self
pub fn proc_macro(self) -> Self
pub fn normal_dev(self) -> Self
pub fn proc_macro_dev(self) -> Self
pub fn build(self) -> Self
pub fn build_proc_macro(self) -> Self
Trait Implementations§
Source§impl<Name: Debug> Debug for CratesUniverseMacro<Name>
impl<Name: Debug> Debug for CratesUniverseMacro<Name>
Source§impl<Name: Default> Default for CratesUniverseMacro<Name>
impl<Name: Default> Default for CratesUniverseMacro<Name>
Source§fn default() -> CratesUniverseMacro<Name>
fn default() -> CratesUniverseMacro<Name>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<Name> Freeze for CratesUniverseMacro<Name>where
Name: Freeze,
impl<Name> RefUnwindSafe for CratesUniverseMacro<Name>where
Name: RefUnwindSafe,
impl<Name> Send for CratesUniverseMacro<Name>where
Name: Send,
impl<Name> Sync for CratesUniverseMacro<Name>where
Name: Sync,
impl<Name> Unpin for CratesUniverseMacro<Name>where
Name: Unpin,
impl<Name> UnwindSafe for CratesUniverseMacro<Name>where
Name: 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> 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