improvements and fixes
This commit is contained in:
@ -20,6 +20,7 @@ impl PrintableWithTranslator for IdType {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#[derive(
|
||||
@ -108,3 +109,15 @@ impl From<(&IdType, &IdState)> for PositiveType {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<PositiveType> for IdType {
|
||||
fn from(value: PositiveType) -> Self {
|
||||
value.id
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&PositiveType> for IdType {
|
||||
fn from(value: &PositiveType) -> Self {
|
||||
value.id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user