 		}
 	}
 }
-
-
-
-// Workaround for Swift limitation which does not support dynamically sized enum<T>.
-
-public final class ResultValue<T> {
-
-	private let value: T
-
-
-	private init(_ value: T) {
-		self.value = value
-	}
-}
-
-
-extension ResultValue: CustomDebugStringConvertible {
-
-	public var debugDescription: String {
-		return description
-	}
-}
-
-
-extension ResultValue: CustomStringConvertible {
-
-	public var description: String {
-		return String(value)
-	}
-}

	}


	public static func failure(error: NSError) -> Result {
		return .Failure(error)
	}



	}


	public var value: T? {
		switch self {
		case .Failure:            return nil
		case let .Success(value): return value
		}
	}
}
