Merge branch 'usize' into 'master'
Implement IntoAttributeValue for usize See merge request !9
This commit is contained in:
commit
8f4361c8b1
1 changed files with 6 additions and 0 deletions
|
@ -87,6 +87,12 @@ pub trait IntoAttributeValue {
|
|||
fn into_attribute_value(self) -> Option<String>;
|
||||
}
|
||||
|
||||
impl IntoAttributeValue for usize {
|
||||
fn into_attribute_value(self) -> Option<String> {
|
||||
Some(format!("{}", self))
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoAttributeValue for String {
|
||||
fn into_attribute_value(self) -> Option<String> {
|
||||
Some(self)
|
||||
|
|
Loading…
Reference in a new issue