pub struct NotesRef(/* private fields */);Expand description
Full ref name for a Git notes namespace (refs/notes/…).
Implementations§
Source§impl NotesRef
impl NotesRef
Sourcepub fn from_full(full: &str) -> Result<Self>
pub fn from_full(full: &str) -> Result<Self>
Parse a full ref name that must live under refs/notes/.
Used for GIT_NOTES_REF, core.notesRef, and other configured refs (not
--ref, which uses Self::parse).
§Errors
Returns Error::InvalidNotesRef when
full is not prefixed with refs/notes/ or is not a valid ref name (env/config
values are not trimmed or otherwise normalized).
Trait Implementations§
impl Eq for NotesRef
impl StructuralPartialEq for NotesRef
Auto Trait Implementations§
impl Freeze for NotesRef
impl RefUnwindSafe for NotesRef
impl Send for NotesRef
impl Sync for NotesRef
impl Unpin for NotesRef
impl UnsafeUnpin for NotesRef
impl UnwindSafe for NotesRef
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