dope-core 0.77.0

Owned native I/O and completion driver for dope
Documentation
use std::mem;

use crate::driver::{storage, storage::Path};

/// The path from a storage plan to itself.
#[derive(Clone, Copy, Default)]
pub struct Here;

impl<S: storage::Plan> Path<S, S> for Here {
    fn get<'life, 'p: 'life, 'd: 'p>(
        self,
        root: &'life S::Output<'p, 'd>,
    ) -> &'life S::Output<'p, 'd>
    where
        Self: 'd,
        S: 'd,
    {
        root
    }
}

const _: () = {
    assert!(mem::size_of::<Here>() == 0);
    assert!(mem::align_of::<Here>() == 1);
    assert!(!mem::needs_drop::<Here>());
};