#[non_exhaustive]pub struct MetadataItems {
pub increase_indent_pattern: Option<Regex>,
pub decrease_indent_pattern: Option<Regex>,
pub bracket_indent_next_line_pattern: Option<Regex>,
pub disable_indent_next_line_pattern: Option<Regex>,
pub unindented_line_pattern: Option<Regex>,
pub indent_parens: Option<bool>,
pub shell_variables: BTreeMap<String, String>,
pub line_comment: Option<String>,
pub block_comment: Option<(String, String)>,
}Expand description
Items loaded from .tmPreferences metadata files, for a particular scope.
For more information, see Metadata Files
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.increase_indent_pattern: Option<Regex>§decrease_indent_pattern: Option<Regex>§bracket_indent_next_line_pattern: Option<Regex>§disable_indent_next_line_pattern: Option<Regex>§unindented_line_pattern: Option<Regex>§indent_parens: Option<bool>§shell_variables: BTreeMap<String, String>§line_comment: Option<String>For convenience; this is the first value in shell_variables
with a key beginning: TM_COMMENT_START that doesn’t have a
corresponding TM_COMMENT_END.
block_comment: Option<(String, String)>The first pair of TM_COMMENT_START and TM_COMMENT_END items in
shell_variables, if they exist.
Trait Implementations§
Source§impl Clone for MetadataItems
impl Clone for MetadataItems
Source§impl Debug for MetadataItems
impl Debug for MetadataItems
Source§impl<'de> Deserialize<'de> for MetadataItems
impl<'de> Deserialize<'de> for MetadataItems
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MetadataItems
impl PartialEq for MetadataItems
Source§impl Serialize for MetadataItems
impl Serialize for MetadataItems
impl StructuralPartialEq for MetadataItems
Auto Trait Implementations§
impl Freeze for MetadataItems
impl RefUnwindSafe for MetadataItems
impl Send for MetadataItems
impl Sync for MetadataItems
impl Unpin for MetadataItems
impl UnsafeUnpin for MetadataItems
impl UnwindSafe for MetadataItems
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