Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub trait Containerized {
}

/// Push an item `T` into a region.
pub trait Push<T>: Region {
pub trait Push<T: ?Sized>: Region {
/// Push `item` into self, returning an index that allows to look up the
/// corresponding read item.
#[must_use]
Expand All @@ -99,7 +99,7 @@ pub trait Push<T>: Region {
/// Reserve space in the receiving region.
///
/// Closely related to [`Push`], but separate because target type is likely different.
pub trait ReserveItems<T>: Region {
pub trait ReserveItems<T: ?Sized> {
/// Ensure that the region can absorb `items` without reallocation.
fn reserve_items<I>(&mut self, items: I)
where
Expand Down