/// If the given item describes an extent, unwraps it and returns the extent key/value.
If the given item describes an extent, unwraps it and returns the extent key/value.
If the given item describes an extent unwraps it and returns the extent key / value .
pub fn decode_extent(
    item: ItemRef<'_, ObjectKey, ObjectValue>,
) -> Option<(u64, &ExtentKey, &ExtentValue)> {
    match item {
        ItemRef {
            key: ObjectKey { object_id, data: ObjectKeyData::Extent(ref extent_key) },
            value: ObjectValue::Extent(ref extent_value),
        } => Some((*object_id, extent_key, extent_value)),
        _ => None,
    }
}
pub fn decode_extent ( item : ItemRef < ' _ , ObjectKey , ObjectValue > , ) -> Option < ( u64 , & ExtentKey , & ExtentValue ) > { match item { ItemRef { key : ObjectKey { object_id , data : ObjectKeyData :: Extent ( ref extent_key ) } , value : ObjectValue :: Extent ( ref extent_value ) , } => Some ( ( * object_id , extent_key , extent_value ) ) , _ => None , } }
If the given item describes an extent, unwraps it and returns the extent key/value.
If the given item describes an extent unwraps it and returns the extent key / value .
item
ItemRef<'_, ObjectKey, ObjectValue>