mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 12:13:25 +00:00
Add missing exports in bevy_ecs (#16415)
# Objective Seemed to have missed the export of `DynamicComponentFetch` from #15593. `TryFromFilteredError` which is returned by `impl TryFrom<FiliteredEntityMut/Ref> for EntityRef/Mut` also seemed to have been missing. ## Solution Export both of them.
This commit is contained in:
parent
8dfd076982
commit
d3e9ecbb8c
2 changed files with 9 additions and 3 deletions
|
@ -2802,13 +2802,19 @@ impl<'a> From<&'a mut EntityWorldMut<'_>> for FilteredEntityMut<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Error type returned by [`TryFrom`] conversions from filtered entity types
|
||||||
|
/// ([`FilteredEntityRef`]/[`FilteredEntityMut`]) to full-access entity types
|
||||||
|
/// ([`EntityRef`]/[`EntityMut`]).
|
||||||
#[derive(Error, Display, Debug)]
|
#[derive(Error, Display, Debug)]
|
||||||
pub enum TryFromFilteredError {
|
pub enum TryFromFilteredError {
|
||||||
|
/// Error indicating that the filtered entity does not have read access to
|
||||||
|
/// all components.
|
||||||
#[display(
|
#[display(
|
||||||
"Conversion failed, filtered entity ref does not have read access to all components"
|
"Conversion failed, filtered entity ref does not have read access to all components"
|
||||||
)]
|
)]
|
||||||
MissingReadAllAccess,
|
MissingReadAllAccess,
|
||||||
|
/// Error indicating that the filtered entity does not have write access to
|
||||||
|
/// all components.
|
||||||
#[display(
|
#[display(
|
||||||
"Conversion failed, filtered entity ref does not have write access to all components"
|
"Conversion failed, filtered entity ref does not have write access to all components"
|
||||||
)]
|
)]
|
||||||
|
|
|
@ -22,8 +22,8 @@ pub use component_constants::*;
|
||||||
pub use deferred_world::DeferredWorld;
|
pub use deferred_world::DeferredWorld;
|
||||||
pub use entity_fetch::WorldEntityFetch;
|
pub use entity_fetch::WorldEntityFetch;
|
||||||
pub use entity_ref::{
|
pub use entity_ref::{
|
||||||
EntityMut, EntityMutExcept, EntityRef, EntityRefExcept, EntityWorldMut, Entry,
|
DynamicComponentFetch, EntityMut, EntityMutExcept, EntityRef, EntityRefExcept, EntityWorldMut,
|
||||||
FilteredEntityMut, FilteredEntityRef, OccupiedEntry, VacantEntry,
|
Entry, FilteredEntityMut, FilteredEntityRef, OccupiedEntry, TryFromFilteredError, VacantEntry,
|
||||||
};
|
};
|
||||||
pub use filtered_resource::*;
|
pub use filtered_resource::*;
|
||||||
pub use identifier::WorldId;
|
pub use identifier::WorldId;
|
||||||
|
|
Loading…
Reference in a new issue