InvariantLifetime is Copy-able
Both ContravariantLifetime and CovariantLifetime are marked as Copy, so it makes sense for InvariantLifetime to be as well.
This commit is contained in:
parent
f07526a999
commit
5966815abe
1 changed files with 2 additions and 0 deletions
|
|
@ -259,6 +259,8 @@ pub mod marker {
|
|||
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub struct InvariantLifetime<'a>;
|
||||
|
||||
impl<'a> Copy for InvariantLifetime<'a> {}
|
||||
|
||||
/// A type which is considered "not sendable", meaning that it cannot
|
||||
/// be safely sent between tasks, even if it is owned. This is
|
||||
/// typically embedded in other types, such as `Gc`, to ensure that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue