pub struct StaticDependency {
pub id: ModuleId<'static>,
pub version_req: &'static [&'static str],
}
Expand description
Statically defined dependency used in-contract
Fields§
§id: ModuleId<'static>
§version_req: &'static [&'static str]
Implementations§
Trait Implementations§
Source§impl Clone for StaticDependency
impl Clone for StaticDependency
Source§fn clone(&self) -> StaticDependency
fn clone(&self) -> StaticDependency
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StaticDependency
impl Debug for StaticDependency
Source§impl From<&StaticDependency> for Dependency
impl From<&StaticDependency> for Dependency
Source§fn from(dep: &StaticDependency) -> Self
fn from(dep: &StaticDependency) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StaticDependency
impl PartialEq for StaticDependency
impl StructuralPartialEq for StaticDependency
Auto Trait Implementations§
impl Freeze for StaticDependency
impl RefUnwindSafe for StaticDependency
impl Send for StaticDependency
impl Sync for StaticDependency
impl Unpin for StaticDependency
impl UnwindSafe for StaticDependency
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<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