pub fn take<T: Decode + Sized>(key: &[u8]) -> Option<T> {
	let r = get(key);
	if r.is_some() {
		kill(key);
	}
	r
}
/// Remove `key` from storage, returning its value if it had an explicit entry or `None` otherwise.
Remove `key` from storage, returning its value if it had an explicit entry or `None` otherwise.
Remove ` key ` from storage returning its value if it had an explicit entry or ` None ` otherwise .
pub fn take<T: Decode + Sized>(key: &[u8]) -> Option<T> {
	let r = get(key);
	if r.is_some() {
		kill(key);
	}
	r
}
pub fn take < T : Decode + Sized > ( key : & [ u8 ] ) -> Option < T > { let r = get ( key ) ; if r . is_some ( ) { kill ( key ) ; } r }
Remove `key` from storage, returning its value if it had an explicit entry or `None` otherwise.
Remove ` key ` from storage returning its value if it had an explicit entry or ` None ` otherwise .
key
&[u8]
key
&[u8]