Add doc comment for impl From<LayoutError> for TryReserveError
This commit is contained in:
parent
8649737bee
commit
a151982af3
1 changed files with 1 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ pub enum TryReserveError {
|
|||
|
||||
#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
|
||||
impl From<LayoutError> for TryReserveError {
|
||||
/// Always evaluates to [`TryReserveError::CapacityOverflow`].
|
||||
#[inline]
|
||||
fn from(_: LayoutError) -> Self {
|
||||
TryReserveError::CapacityOverflow
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue