Struct DockerIgnoreRule
pub struct DockerIgnoreRule { /* private fields */ }Expand description
A classified .dockerignore rule.
Implementations§
§impl DockerIgnoreRule
impl DockerIgnoreRule
pub fn parse(
value: impl AsRef<str>,
) -> Result<DockerIgnoreRule, DockerIgnoreParseError>
pub fn parse( value: impl AsRef<str>, ) -> Result<DockerIgnoreRule, DockerIgnoreParseError>
Parses a .dockerignore-style line.
pub const fn pattern(&self) -> Option<&DockerIgnorePattern>
pub const fn pattern(&self) -> Option<&DockerIgnorePattern>
Returns the pattern when this is a pattern-bearing rule.
pub const fn negation(&self) -> DockerIgnoreNegation
pub const fn negation(&self) -> DockerIgnoreNegation
Returns the negation marker.
pub const fn scope(&self) -> DockerIgnoreScope
pub const fn scope(&self) -> DockerIgnoreScope
Returns the rule scope.
pub const fn is_comment(&self) -> bool
pub const fn is_comment(&self) -> bool
Returns true when this is a comment line.
pub const fn is_directory_only(&self) -> bool
pub const fn is_directory_only(&self) -> bool
Returns true when the rule carries a directory-only pattern.
Trait Implementations§
§impl Clone for DockerIgnoreRule
impl Clone for DockerIgnoreRule
§fn clone(&self) -> DockerIgnoreRule
fn clone(&self) -> DockerIgnoreRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DockerIgnoreRule
impl Debug for DockerIgnoreRule
§impl PartialEq for DockerIgnoreRule
impl PartialEq for DockerIgnoreRule
impl Eq for DockerIgnoreRule
impl StructuralPartialEq for DockerIgnoreRule
Auto Trait Implementations§
impl Freeze for DockerIgnoreRule
impl RefUnwindSafe for DockerIgnoreRule
impl Send for DockerIgnoreRule
impl Sync for DockerIgnoreRule
impl Unpin for DockerIgnoreRule
impl UnsafeUnpin for DockerIgnoreRule
impl UnwindSafe for DockerIgnoreRule
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