pub enum DockerfileSyntaxKind {
Show 45 variants
Identifier,
String,
Number,
Whitespace,
Newline,
From,
Run,
Cmd,
Label,
Maintainer,
Expose,
Env,
Add,
Copy,
Entrypoint,
Volume,
User,
Workdir,
Arg,
Onbuild,
Stopsignal,
Healthcheck,
Shell,
As,
None,
Interval,
Timeout,
StartPeriod,
Retries,
Equal,
Equals,
Colon,
Comma,
Semicolon,
Dollar,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
LeftParen,
RightParen,
Comment,
Path,
Error,
Eof,
}Expand description
Dockerfile 语法种类
Variants§
Identifier
String
Number
Whitespace
Newline
From
Run
Cmd
Label
Maintainer
Expose
Env
Add
Copy
Entrypoint
Volume
User
Workdir
Arg
Onbuild
Stopsignal
Healthcheck
Shell
As
None
Interval
Timeout
StartPeriod
Retries
Equal
Equals
Colon
Comma
Semicolon
Dollar
LeftBracket
RightBracket
LeftBrace
RightBrace
LeftParen
RightParen
Comment
Path
Error
Eof
Implementations§
Trait Implementations§
Source§impl Clone for DockerfileSyntaxKind
impl Clone for DockerfileSyntaxKind
Source§fn clone(&self) -> DockerfileSyntaxKind
fn clone(&self) -> DockerfileSyntaxKind
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 moreSource§impl Debug for DockerfileSyntaxKind
impl Debug for DockerfileSyntaxKind
Source§impl Hash for DockerfileSyntaxKind
impl Hash for DockerfileSyntaxKind
Source§impl PartialEq for DockerfileSyntaxKind
impl PartialEq for DockerfileSyntaxKind
Source§impl Serialize for DockerfileSyntaxKind
impl Serialize for DockerfileSyntaxKind
Source§impl SyntaxKind for DockerfileSyntaxKind
impl SyntaxKind for DockerfileSyntaxKind
Source§fn is_trivia(&self) -> bool
fn is_trivia(&self) -> bool
Returns true if this kind represents trivia (whitespace, comments, etc.). Read more
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this kind represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this kind represents whitespace.
Source§fn is_token_type(&self) -> bool
fn is_token_type(&self) -> bool
Returns true if this kind represents a token type. Read more
Source§fn is_element_type(&self) -> bool
fn is_element_type(&self) -> bool
Returns true if this kind represents an element type. Read more
impl Copy for DockerfileSyntaxKind
impl Eq for DockerfileSyntaxKind
impl StructuralPartialEq for DockerfileSyntaxKind
Auto Trait Implementations§
impl Freeze for DockerfileSyntaxKind
impl RefUnwindSafe for DockerfileSyntaxKind
impl Send for DockerfileSyntaxKind
impl Sync for DockerfileSyntaxKind
impl Unpin for DockerfileSyntaxKind
impl UnwindSafe for DockerfileSyntaxKind
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