pub fn access<S>(spanned: S) -> impl FnOnce(AccessError) -> Self
    where
        S: Spanned,
    {
        move |error| Self::new(spanned, error)
    }
/// Construct a callback to build an access error with the given spanned.
Construct a callback to build an access error with the given spanned.
Construct a callback to build an access error with the given spanned .
pub fn access<S>(spanned: S) -> impl FnOnce(AccessError) -> Self
    where
        S: Spanned,
    {
        move |error| Self::new(spanned, error)
    }
pub fn access < S > ( spanned : S ) -> impl FnOnce ( AccessError ) -> Self where S : Spanned , { move | error | Self :: new ( spanned , error ) }
Construct a callback to build an access error with the given spanned.
Construct a callback to build an access error with the given spanned .
spanned
S
spanned
S