// can be resolved within libcore.
#[doc(hidden)]
pub mod core {
+ pub use clone;
pub use cmp;
pub use condition;
pub use option;
use vec;
/// The either type
-#[deriving(Eq)]
+#[deriving(Clone, Eq)]
pub enum Either<T, U> {
Left(T),
Right(U)
#[cfg(test)] use str;
/// The option type
-#[deriving(Eq)]
+#[deriving(Clone, Eq)]
pub enum Option<T> {
None,
Some(T),
use str;
use to_str::ToStr;
-#[deriving(Eq)]
+#[deriving(Clone, Eq)]
pub struct WindowsPath {
host: Option<~str>,
device: Option<~str>,
GenericPath::from_str(s)
}
-#[deriving(Eq)]
+#[deriving(Clone, Eq)]
pub struct PosixPath {
is_absolute: bool,
components: ~[~str],
use vec;
/// The result type
-#[deriving(Eq)]
+#[deriving(Clone, Eq)]
pub enum Result<T, U> {
/// Contains the successful result value
Ok(T),