Skip to main content

RefTargetOptionExt

Trait RefTargetOptionExt 

Source
pub trait RefTargetOptionExt {
    type Value;

    // Required method
    fn flatten(self) -> Self::Value;
}
Expand description

Helper to strip redundant Option<T> from RefTarget lookup result.

Required Associated Types§

Source

type Value

The resulting type after flattening.

Required Methods§

Source

fn flatten(self) -> Self::Value

Flattens nested structure.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RefTargetOptionExt for Option<Merge<Option<CommitId>>>

Source§

impl RefTargetOptionExt for Option<RemoteRef>

Source§

impl<'a> RefTargetOptionExt for Option<&'a Merge<Option<CommitId>>>

Source§

impl<'a> RefTargetOptionExt for Option<&'a RemoteRef>

Implementors§