Trait fixity::core::workspace::AsWorkspaceRef[][src]

pub trait AsWorkspaceRef {
    type Workspace: Workspace;
    fn as_workspace_ref(&self) -> &Self::Workspace;
}

A helper trait to allow a single T to return references to both a Workspace and a Cache.

See Commit for example usage.

Associated Types

Loading content...

Required methods

fn as_workspace_ref(&self) -> &Self::Workspace[src]

Loading content...

Implementors

impl<C, W> AsWorkspaceRef for Bytes<'_, C, W> where
    W: Workspace
[src]

type Workspace = W

impl<C, W> AsWorkspaceRef for Fixity<C, W> where
    W: Workspace
[src]

type Workspace = W

impl<C, W> AsWorkspaceRef for Map<'_, C, W> where
    W: Workspace
[src]

type Workspace = W

Loading content...