Docs.rs
rustpython-ruff_python_ast-0.16.5
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module str
ruff_
python_
ast
0.16.5
Module str
Module Items
Enums
Functions
In crate ruff_
python_
ast
ruff_python_ast
Module
str
Copy item path
Source
Enums
§
Quote
Enumeration of the two kinds of quotes that can be used for Python string/f/t-string/bytestring literals
Triple
Quotes
Functions
§
is_
triple_
quote
Return
true
if the string is a triple-quote string or byte prefix.
leading_
quote
Return the leading quote for a string, template, or bytes literal (e.g.,
"""
).
raw_
contents
Strip the leading and trailing quotes from a string. Assumes that the string is a valid string literal, but does not verify that the string is a “simple” string literal (i.e., that it does not contain any implicit concatenations).
trailing_
quote
Return the trailing quote string for a string, template, or bytes literal (e.g.,
"""
).