fn decode_ref<T, F>(&self, search_tag: u16, decoder: F) -> Result<Option<&T>>
    where
        F: FnOnce(&[u8]) -> Result<&T>,
        T: ?Sized,
    {
        self.get_data(search_tag).map(decoder).transpose()
    }
/// Attempt to find field-value of field that has the search_tag and then
/// attempts to convert it to the required type using the supplied `decoder` function.
Attempt to find field-value of field that has the search_tag and then
attempts to convert it to the required type using the supplied `decoder` function.
Attempt to find field - value of field that has the search_tag and then attempts to convert it to the required type using the supplied ` decoder ` function .
fn decode_ref<T, F>(&self, search_tag: u16, decoder: F) -> Result<Option<&T>>
    where
        F: FnOnce(&[u8]) -> Result<&T>,
        T: ?Sized,
    {
        self.get_data(search_tag).map(decoder).transpose()
    }
fn decode_ref < T , F > ( & self , search_tag : u16 , decoder : F ) -> Result < Option < & T > > where F : FnOnce ( & [ u8 ] ) -> Result < & T > , T : ? Sized , { self . get_data ( search_tag ) . map ( decoder ) . transpose ( ) }
Attempt to find field-value of field that has the search_tag and then
attempts to convert it to the required type using the supplied `decoder` function.
Attempt to find field - value of field that has the search_tag and then attempts to convert it to the required type using the supplied ` decoder ` function .
&self
search_tag
u16
decoder
F
&self
search_tag
u16
decoder
F