// Returns a triplet of data used to sort declarations in a way that's identical to FIDL.
Returns a triplet of data used to sort declarations in a way that's identical to FIDL.
Returns a triplet of data used to sort declarations in a way that ' s identical to FIDL .
pub fn order_triplet(&self) -> (String, String, String) {
        (
            // Namespace.
            self.namespace.as_ref().map(|ns| ns.clone()).unwrap_or("".to_string()),
            // Unqualified name.
            self.name.clone(),
            // Fully-qualified name.
            self.namespace
                .as_ref()
                .map(|ns| format!("{}/{}", ns, self.name))
                .unwrap_or(self.name.clone()),
        )
    }
pub fn order_triplet ( & self ) -> ( String , String , String ) { ( // Namespace. self . namespace . as_ref ( ) . map ( | ns | ns . clone ( ) ) . unwrap_or ( " " . to_string ( ) ) , // Unqualified name. self . name . clone ( ) , // Fully-qualified name. self . namespace . as_ref ( ) . map ( | ns | format ! ( " " ns self name ) ) . unwrap_or ( self . name . clone ( ) ) , ) }
Returns a triplet of data used to sort declarations in a way that's identical to FIDL.
Returns a triplet of data used to sort declarations in a way that ' s identical to FIDL .
&self