pub struct TextSnippet {
pub id: TextSnippetId,
pub contents: TextFileContents,
}Expand description
A named byte snippet that must appear inside a text file.
Fields§
§id: TextSnippetIdStable snippet identity used for merge attribution.
contents: TextFileContentsRequired snippet bytes.
Trait Implementations§
Source§impl Clone for TextSnippet
impl Clone for TextSnippet
Source§fn clone(&self) -> TextSnippet
fn clone(&self) -> TextSnippet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextSnippet
impl Debug for TextSnippet
impl Eq for TextSnippet
Source§impl FileItemRequirement for TextSnippet
impl FileItemRequirement for TextSnippet
type Identity = TextSnippetId
fn merge_identity(&self) -> Self::Identity
fn compose_item( key: &str, items: Vec<ItemAssertionInput<Self>>, conflicts: &mut Vec<ConflictEntry>, ) -> Option<RequiredItemResolution<Self>>
Source§impl PartialEq for TextSnippet
impl PartialEq for TextSnippet
impl StructuralPartialEq for TextSnippet
Auto Trait Implementations§
impl Freeze for TextSnippet
impl RefUnwindSafe for TextSnippet
impl Send for TextSnippet
impl Sync for TextSnippet
impl Unpin for TextSnippet
impl UnsafeUnpin for TextSnippet
impl UnwindSafe for TextSnippet
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