1use crate::{Basic, Type};
2
3pub use zvariant_utils::signature::*;
4
5impl From<Error> for crate::Error {
6 fn from(e: Error) -> Self {
7 crate::Error::SignatureParse(e)
8 }
9}
10
11impl Type for Signature {
12 const SIGNATURE: &'static Signature = &Signature::Signature;
13}
14
15impl Basic for Signature {
16 const SIGNATURE_CHAR: char = 'g';
17 const SIGNATURE_STR: &'static str = "g";
18}
19
20impl From<Signature> for crate::Value<'static> {
21 fn from(value: Signature) -> Self {
22 crate::Value::Signature(value)
23 }
24}