You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn Vec[A].withCapacity(cap: U32): Vec[A] = ... # A matches the type parameter in `type Vec[T]`
fn Vec.withCapacity(cap: U32): Vec[T] = ... # T inherited from the type definition
The text was updated successfully, but these errors were encountered:
Consider the
Str
methods:We should allow implementing these without an
impl
block:Now sure how to best handle types with type parameters:
Some options:
The text was updated successfully, but these errors were encountered: