Feat: Make AttributeValue::Any usable (#565)
* Implemented Display for AttributeValue::Any * Make ArbitraryAttributeValue public * allow(missing_docs) for ArbitraryAttributeValue * Formatted lib.rs
This commit is contained in:
1 parent
28fba42e7e
commit
964a942243
2 files changed
+7
-5
No files matched your search
@@ -66,12 +66,13 @@ impl<'a> std::fmt::Display for AttributeValue<'a> {
|
||||
AttributeValue::Vec4Int(_, _, _, _) => todo!(),
|
||||
AttributeValue::Vec4Uint(_, _, _, _) => todo!(),
|
||||
AttributeValue::Bytes(a) => write!(f, "{:?}", a),
|
||||
AttributeValue::Any(_) => todo!(),
|
||||
AttributeValue::Any(a) => write!(f, "{:?}", a),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[allow(missing_docs)]
|
||||
pub struct ArbitraryAttributeValue<'a> {
|
||||
pub value: &'a dyn std::any::Any,
|
||||
pub cmp: fn(&'a dyn std::any::Any, &'a dyn std::any::Any) -> bool,
|
||||
|
||||
Reference in new issue
Block a user