pub trait TransposeLoc {
    type Value;
    type FileId;

    fn transpose_loc(
        self,
        none_location: impl FnOnce() -> Location<Self::FileId>
    ) -> Loc<Option<Self::Value>, Self::FileId>; }
Expand description

Provides a transposition function from Option<Loc<T, F>> to Loc<Option<T>, F>.

Required Associated Types

Located value type.

File id type.

Required Methods

Transposes a Option<Loc<Self::Value, Self::FileId>> into a Loc<Option<Self::Value>, Self::FileId>.

Implementations on Foreign Types

Implementors