Mark Query and QuerySet contructors as pub(crate) (#829)
Mark Query and QuerySet contructors as pub(crate)
This commit is contained in:
parent
60fa2d5f93
commit
a68c217ccf
@ -31,7 +31,7 @@ impl<'a, Q: HecsQuery> Query<'a, Q> {
|
|||||||
/// This will create a Query that could violate memory safety rules. Make sure that this is only called in
|
/// This will create a Query that could violate memory safety rules. Make sure that this is only called in
|
||||||
/// ways that ensure the Queries have unique mutable access.
|
/// ways that ensure the Queries have unique mutable access.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub unsafe fn new(
|
pub(crate) unsafe fn new(
|
||||||
world: &'a World,
|
world: &'a World,
|
||||||
component_access: &'a TypeAccess<ArchetypeComponent>,
|
component_access: &'a TypeAccess<ArchetypeComponent>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
|||||||
@ -20,7 +20,10 @@ impl<T: QueryTuple> QuerySet<T> {
|
|||||||
/// # Safety
|
/// # Safety
|
||||||
/// This will create a set of Query types that could violate memory safety rules. Make sure that this is only called in
|
/// This will create a set of Query types that could violate memory safety rules. Make sure that this is only called in
|
||||||
/// ways that ensure the Queries have unique mutable access.
|
/// ways that ensure the Queries have unique mutable access.
|
||||||
pub unsafe fn new(world: &World, component_access: &TypeAccess<ArchetypeComponent>) -> Self {
|
pub(crate) unsafe fn new(
|
||||||
|
world: &World,
|
||||||
|
component_access: &TypeAccess<ArchetypeComponent>,
|
||||||
|
) -> Self {
|
||||||
QuerySet {
|
QuerySet {
|
||||||
value: T::new(world, component_access),
|
value: T::new(world, component_access),
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user