pub type CoordinatorZome = Zome<CoordinatorZomeDef>;

Aliased Type§

struct CoordinatorZome {
    pub name: ZomeName,
    pub def: CoordinatorZomeDef,
}

Fields§

§name: ZomeName§def: CoordinatorZomeDef

Implementations§

source§

impl<T> Zome<T>

source

pub fn new(name: ZomeName, def: T) -> Zome<T>

Constructor

source

pub fn zome_name(&self) -> &ZomeName

Accessor

source

pub fn zome_name_mut(&mut self) -> &mut ZomeName

source

pub fn zome_def(&self) -> &T

Accessor

source

pub fn into_inner(self) -> (ZomeName, T)

Split into components

source§

impl Zome<CoordinatorZomeDef>

source

pub fn erase_type(self) -> Zome<ZomeDef>

Erase the type of Zome because you no longer need to know if this is an integrity or coordinator def.

source

pub fn set_dependency(&mut self, zome_name: impl Into<ZomeName>)

Add a dependency to this zome.

Trait Implementations§

source§

impl<'arbitrary, T> Arbitrary<'arbitrary> for Zome<T>where T: Arbitrary<'arbitrary>,

source§

fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Zome<T>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
source§

fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Zome<T>, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
source§

impl<T> AsRef<T> for Zome<T>

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T> Borrow<T> for Zome<T>

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> Clone for Zome<T>where T: Clone,

source§

fn clone(&self) -> Zome<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Zome<T>where T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Deref for Zome<T>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &<Zome<T> as Deref>::Target

Dereferences the value.
source§

impl<'de, T> Deserialize<'de> for Zome<T>where T: Deserialize<'de>,

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<Zome<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<(ZomeName, CoordinatorZomeDef)> for Zome<CoordinatorZomeDef>

source§

fn from(pair: (ZomeName, CoordinatorZomeDef)) -> Zome<CoordinatorZomeDef>

Converts to this type from the input type.
source§

impl<T> Hash for Zome<T>where T: Hash,

source§

fn hash<__H>(&self, state: &mut __H)where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T> Ord for Zome<T>where T: Ord,

source§

fn cmp(&self, other: &Zome<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<T> PartialEq<Zome<T>> for Zome<T>where T: PartialEq<T>,

source§

fn eq(&self, other: &Zome<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> PartialOrd<Zome<T>> for Zome<T>where T: PartialOrd<T>,

source§

fn partial_cmp(&self, other: &Zome<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T> Serialize for Zome<T>where T: Serialize,

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Eq for Zome<T>where T: Eq,

source§

impl<T> StructuralEq for Zome<T>

source§

impl<T> StructuralPartialEq for Zome<T>