Start to work on structure of input/output
This commit is contained in:
@@ -1,3 +1,26 @@
|
|||||||
|
|
||||||
|
pub struct Board {
|
||||||
|
width: usize,
|
||||||
|
height: usize,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct CutInput<'a> {
|
||||||
|
stock: &'a [Board],
|
||||||
|
desired: &'a [Board],
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct CutOutput {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
pub enum CutError {
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn cut(input:CutInput) -> Result<CutOutput, CutError> {
|
||||||
|
return Ok(CutOutput {})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn add(left: u64, right: u64) -> u64 {
|
pub fn add(left: u64, right: u64) -> u64 {
|
||||||
left + right
|
left + right
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user