Struct Crate
pub struct Crate(/* private fields */);
Implementations§
§impl Crate
impl Crate
pub fn ingredient(db: &(dyn Database + 'static)) -> &IngredientImpl<Crate>
pub fn ingredient_mut( db: &mut (dyn Database + 'static), ) -> (&mut IngredientImpl<Crate>, &mut Runtime)
§impl Crate
impl Crate
pub fn new<Db_>(
db: &Db_,
data: CrateData<Crate>,
extra_data: ExtraCrateData,
workspace_data: Arc<CrateWorkspaceData>,
cfg_options: CfgOptions,
env: Env,
) -> Cratewhere
Db_: Database + ?Sized,
pub fn builder( data: CrateData<Crate>, extra_data: ExtraCrateData, workspace_data: Arc<CrateWorkspaceData>, cfg_options: CfgOptions, env: Env, ) -> <Crate as HasBuilder>::Builder
pub fn data<Db_, 'db>(self, db: &'db Db_) -> &'db CrateData<Crate>where
Db_: Database + ?Sized,
pub fn extra_data<Db_, 'db>(self, db: &'db Db_) -> &'db ExtraCrateDatawhere
Db_: Database + ?Sized,
pub fn workspace_data<Db_, 'db>(
self,
db: &'db Db_,
) -> &'db Arc<CrateWorkspaceData>where
Db_: Database + ?Sized,
pub fn cfg_options<Db_, 'db>(self, db: &'db Db_) -> &'db CfgOptionswhere
Db_: Database + ?Sized,
pub fn env<Db_, 'db>(self, db: &'db Db_) -> &'db Envwhere
Db_: Database + ?Sized,
pub fn set_data<Db_, 'db>(
self,
db: &'db mut Db_,
) -> impl Setter<FieldTy = CrateData<Crate>> + 'dbwhere
Db_: Database + ?Sized,
pub fn set_extra_data<Db_, 'db>(
self,
db: &'db mut Db_,
) -> impl Setter<FieldTy = ExtraCrateData> + 'dbwhere
Db_: Database + ?Sized,
pub fn set_workspace_data<Db_, 'db>(
self,
db: &'db mut Db_,
) -> impl Setter<FieldTy = Arc<CrateWorkspaceData>> + 'dbwhere
Db_: Database + ?Sized,
pub fn set_cfg_options<Db_, 'db>(
self,
db: &'db mut Db_,
) -> impl Setter<FieldTy = CfgOptions> + 'dbwhere
Db_: Database + ?Sized,
pub fn set_env<Db_, 'db>(
self,
db: &'db mut Db_,
) -> impl Setter<FieldTy = Env> + 'dbwhere
Db_: Database + ?Sized,
Trait Implementations§
§impl Configuration for Crate
impl Configuration for Crate
§type Fields = (CrateData<Crate>, ExtraCrateData, Arc<CrateWorkspaceData>, CfgOptions, Env)
type Fields = (CrateData<Crate>, ExtraCrateData, Arc<CrateWorkspaceData>, CfgOptions, Env)
A (possibly empty) tuple of the fields for this struct.
§type Stamps = Array<StampedValue<()>, 5>
type Stamps = Array<StampedValue<()>, 5>
A array of StampedValue<()>
tuples, one per each of the value fields.
const DEBUG_NAME: &'static str = "Crate"
const FIELD_DEBUG_NAMES: &'static [&'static str]
§impl Ord for Crate
impl Ord for Crate
§impl PartialOrd for Crate
impl PartialOrd for Crate
impl Copy for Crate
impl Eq for Crate
impl StructuralPartialEq for Crate
Auto Trait Implementations§
impl Freeze for Crate
impl RefUnwindSafe for Crate
impl Send for Crate
impl Sync for Crate
impl Unpin for Crate
impl UnwindSafe for Crate
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
§impl<T> Cast for T
impl<T> Cast for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> HashEqLike<T> for T
impl<T> HashEqLike<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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