Struct zed2::languages::IndentSize
source · pub struct IndentSize {
pub len: u32,
pub kind: IndentKind,
}
Fields§
§len: u32
§kind: IndentKind
Implementations§
source§impl IndentSize
impl IndentSize
pub fn spaces(len: u32) -> IndentSize
pub fn tab() -> IndentSize
pub fn chars(&self) -> impl Iterator<Item = char>
pub fn char(&self) -> char
pub fn with_delta(self, direction: Ordering, size: IndentSize) -> IndentSize
Trait Implementations§
source§impl Clone for IndentSize
impl Clone for IndentSize
source§fn clone(&self) -> IndentSize
fn clone(&self) -> IndentSize
Returns a copy 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 IndentSize
impl Debug for IndentSize
source§impl Default for IndentSize
impl Default for IndentSize
source§fn default() -> IndentSize
fn default() -> IndentSize
Returns the “default value” for a type. Read more
source§impl PartialEq<IndentSize> for IndentSize
impl PartialEq<IndentSize> for IndentSize
source§fn eq(&self, other: &IndentSize) -> bool
fn eq(&self, other: &IndentSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IndentSize
impl Eq for IndentSize
impl StructuralEq for IndentSize
impl StructuralPartialEq for IndentSize
Auto Trait Implementations§
impl RefUnwindSafe for IndentSize
impl Send for IndentSize
impl Sync for IndentSize
impl Unpin for IndentSize
impl UnwindSafe for IndentSize
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere T: Copy,
§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.