pub fn put_data<I: codec::Encode>(
		&mut self,
		identifier: InherentIdentifier,
		inherent: &I,
	) -> Result<(), RuntimeString> {
		match self.data.entry(identifier) {
			Entry::Vacant(entry) => {
				entry.insert(inherent.encode());
				Ok(())
			},
			Entry::Occupied(_) => {
				Err("Inherent with same identifier already exists!".into())
			}
		}
	}
/// Put data for an inherent into the internal storage.
///
/// # Return
///
/// Returns `Ok(())` if the data could be inserted an no data for an inherent with the same
/// identifier existed, otherwise an error is returned.
///
/// Inherent identifiers need to be unique, otherwise decoding of these values will not work!
Put data for an inherent into the internal storage.
Put data for an inherent into the internal storage .
pub fn put_data<I: codec::Encode>(
		&mut self,
		identifier: InherentIdentifier,
		inherent: &I,
	) -> Result<(), RuntimeString> {
		match self.data.entry(identifier) {
			Entry::Vacant(entry) => {
				entry.insert(inherent.encode());
				Ok(())
			},
			Entry::Occupied(_) => {
				Err("Inherent with same identifier already exists!".into())
			}
		}
	}
pub fn put_data < I : codec :: Encode > ( & mut self , identifier : InherentIdentifier , inherent : & I , ) -> Result < ( ) , RuntimeString > { match self . data . entry ( identifier ) { Entry :: Vacant ( entry ) => { entry . insert ( inherent . encode ( ) ) ; Ok ( ( ) ) } , Entry :: Occupied ( _ ) => { Err ( " " . into ( ) ) } } }
Put data for an inherent into the internal storage.
Put data for an inherent into the internal storage .
&mut self
identifier
InherentIdentifier
inherent
&I
Returns `Ok(())` if the data could be inserted an no data for an inherent with the same
identifier existed, otherwise an error is returned.

Inherent identifiers need to be unique, otherwise decoding of these values will not work!
Returns ` Ok (( )) ` if the data could be inserted an no data for an inherent with the same identifier existed otherwise an error is returned . Inherent identifiers need to be unique otherwise decoding of these values will not work!
&mut self
identifier
InherentIdentifier
inherent
&I