pub struct DockerIgnorePattern(/* private fields */);Expand description
A non-empty .dockerignore pattern.
Implementations§
Source§impl DockerIgnorePattern
impl DockerIgnorePattern
Sourcepub fn new(
value: impl AsRef<str>,
) -> Result<DockerIgnorePattern, DockerIgnoreParseError>
pub fn new( value: impl AsRef<str>, ) -> Result<DockerIgnorePattern, DockerIgnoreParseError>
Creates an ignore pattern from text.
Trait Implementations§
Source§impl AsRef<str> for DockerIgnorePattern
impl AsRef<str> for DockerIgnorePattern
Source§impl Clone for DockerIgnorePattern
impl Clone for DockerIgnorePattern
Source§fn clone(&self) -> DockerIgnorePattern
fn clone(&self) -> DockerIgnorePattern
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 DockerIgnorePattern
impl Debug for DockerIgnorePattern
Source§impl Display for DockerIgnorePattern
impl Display for DockerIgnorePattern
Source§impl Hash for DockerIgnorePattern
impl Hash for DockerIgnorePattern
Source§impl Ord for DockerIgnorePattern
impl Ord for DockerIgnorePattern
Source§fn cmp(&self, other: &DockerIgnorePattern) -> Ordering
fn cmp(&self, other: &DockerIgnorePattern) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DockerIgnorePattern
impl PartialEq for DockerIgnorePattern
Source§fn eq(&self, other: &DockerIgnorePattern) -> bool
fn eq(&self, other: &DockerIgnorePattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DockerIgnorePattern
impl PartialOrd for DockerIgnorePattern
impl Eq for DockerIgnorePattern
impl StructuralPartialEq for DockerIgnorePattern
Auto Trait Implementations§
impl Freeze for DockerIgnorePattern
impl RefUnwindSafe for DockerIgnorePattern
impl Send for DockerIgnorePattern
impl Sync for DockerIgnorePattern
impl Unpin for DockerIgnorePattern
impl UnsafeUnpin for DockerIgnorePattern
impl UnwindSafe for DockerIgnorePattern
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