pub fn require(&mut self, typ: &'static str, key: &str) -> Result<Primitive> {
        self.remove(key).ok_or(
            PdfError::MissingEntry {
                typ,
                field: key.into()
            }
        )
    }
/// like remove, but takes the name of the calling type and returns `PdfError::MissingEntry` if the entry is not found
like remove, but takes the name of the calling type and returns `PdfError::MissingEntry` if the entry is not found
like remove but takes the name of the calling type and returns ` PdfError :: MissingEntry ` if the entry is not found
pub fn require(&mut self, typ: &'static str, key: &str) -> Result<Primitive> {
        self.remove(key).ok_or(
            PdfError::MissingEntry {
                typ,
                field: key.into()
            }
        )
    }
pub fn require ( & mut self , typ : & ' static str , key : & str ) -> Result < Primitive > { self . remove ( key ) . ok_or ( PdfError :: MissingEntry { typ , field : key . into ( ) } ) }
like remove, but takes the name of the calling type and returns `PdfError::MissingEntry` if the entry is not found
like remove but takes the name of the calling type and returns ` PdfError :: MissingEntry ` if the entry is not found
&mut self
typ
&'static str
key
&str
&mut self
typ
&'static str
key
&str