libstd: use #[deriving(Copy)]
This commit is contained in:
parent
2df30a47e2
commit
a77e8a63d5
13 changed files with 30 additions and 81 deletions
|
@ -18,7 +18,6 @@
|
|||
use core::kinds::Sized;
|
||||
use fmt;
|
||||
use iter::IteratorExt;
|
||||
use kinds::Copy;
|
||||
use mem;
|
||||
use ops::FnMut;
|
||||
use option::Option;
|
||||
|
@ -29,11 +28,9 @@ use string::{String, IntoString};
|
|||
use vec::Vec;
|
||||
|
||||
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
|
||||
#[deriving(Clone, PartialEq, PartialOrd, Ord, Eq, Hash)]
|
||||
#[deriving(Clone, Copy, PartialEq, PartialOrd, Ord, Eq, Hash)]
|
||||
pub struct Ascii { chr: u8 }
|
||||
|
||||
impl Copy for Ascii {}
|
||||
|
||||
impl Ascii {
|
||||
/// Converts an ascii character into a `u8`.
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue