pub enum Target<P> {
Tree {
path: P,
},
Blob(BlobTarget<P>),
}Expand description
A located target. A tree has no blob content; a blob always carries a valid blob mode and one exact content-evidence shape.
Variants§
Implementations§
Source§impl<P> Target<P>
impl<P> Target<P>
pub const fn projection_digest(&self) -> Option<Digest>
pub const fn is_lfs_pointer(&self) -> bool
Trait Implementations§
impl<P: Eq> Eq for Target<P>
Source§impl<P> IntoDiscriminant for Target<P>
impl<P> IntoDiscriminant for Target<P>
Source§type Discriminant = TargetTag
type Discriminant = TargetTag
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
impl<P: PartialEq> StructuralPartialEq for Target<P>
Auto Trait Implementations§
impl<P> Freeze for Target<P>where
P: Freeze,
impl<P> RefUnwindSafe for Target<P>where
P: RefUnwindSafe,
impl<P> Send for Target<P>where
P: Send,
impl<P> Sync for Target<P>where
P: Sync,
impl<P> Unpin for Target<P>where
P: Unpin,
impl<P> UnsafeUnpin for Target<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Target<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more