feat: vec to position convertion

This commit is contained in:
Vincent Chan
2022-08-19 12:04:43 +08:00
parent 8401fa0983
commit 61d181b228
2 changed files with 17 additions and 5 deletions

View File

@ -6,3 +6,9 @@ impl Position {
self.0.is_empty()
}
}
impl From<Vec<usize>> for Position {
fn from(v: Vec<usize>) -> Self {
Position(v)
}
}