pub fn to_literal(&self) -> Result<Self, PacketError> {
        Ok(Self {
            version: self.version,
            kind: PacketKind::Literal(self.eval()?),
        })
    }
/// Returns a literal packet with the evaluated value of `self`.
///
/// # Errors
///
/// Will return `Err` if evaluation fails.
Returns a literal packet with the evaluated value of `self`.
Returns a literal packet with the evaluated value of ` self ` .
pub fn to_literal(&self) -> Result<Self, PacketError> {
        Ok(Self {
            version: self.version,
            kind: PacketKind::Literal(self.eval()?),
        })
    }
pub fn to_literal ( & self ) -> Result < Self , PacketError > { Ok ( Self { version : self . version , kind : PacketKind :: Literal ( self . eval ( ) ? ) , } ) }
Returns a literal packet with the evaluated value of `self`.
Returns a literal packet with the evaluated value of ` self ` .
&self
&self
errors
Will return `Err` if evaluation fails.
Will return ` Err ` if evaluation fails .