Implement Clone for Copy types.

This commit is contained in:
Ms2ger 2015-04-28 19:42:46 +02:00
parent b6fc83cf2b
commit 903305416a
53 changed files with 105 additions and 105 deletions

View file

@ -33,7 +33,7 @@ pub enum ReadyState {
}
/// A newtype struct for denoting the age of messages; prevents race conditions.
#[derive(PartialEq, Eq, Debug, Copy)]
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
pub struct Epoch(pub u32);
impl Epoch {
@ -71,7 +71,7 @@ pub enum ScrollPolicy {
/// All layer-specific information that the painting task sends to the compositor other than the
/// buffer contents of the layer itself.
#[derive(Copy)]
#[derive(Copy, Clone)]
pub struct LayerMetadata {
/// An opaque ID. This is usually the address of the flow and index of the box within it.
pub id: LayerId,

View file

@ -27,7 +27,7 @@ impl ConstellationChan {
}
}
#[derive(PartialEq, Eq, Copy, Debug)]
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
pub enum IFrameSandboxState {
IFrameSandboxed,
IFrameUnsandboxed
@ -40,7 +40,7 @@ pub struct Failure {
pub parent_info: Option<(PipelineId, SubpageId)>,
}
#[derive(Copy)]
#[derive(Copy, Clone)]
pub struct WindowSizeData {
/// The size of the initial layout viewport, before parsing an
/// http://www.w3.org/TR/css-device-adapt/#initial-viewport
@ -196,7 +196,7 @@ bitflags! {
}
/// Specifies the type of focus event that is sent to a pipeline
#[derive(Copy, PartialEq)]
#[derive(Copy, Clone, PartialEq)]
pub enum FocusType {
Element, // The first focus message - focus the element itself
Parent, // Focusing a parent element (an iframe)
@ -342,7 +342,7 @@ pub struct SubpageId(pub u32);
// The type of pipeline exit. During complete shutdowns, pipelines do not have to
// release resources automatically released on process termination.
#[derive(Copy)]
#[derive(Copy, Clone)]
pub enum PipelineExitType {
PipelineOnly,
Complete,