Struct sqruff_lib::dialects::ansi::ObjectReferenceSegment
source · pub struct ObjectReferenceSegment(pub ErasedSegment, pub ObjectReferenceKind);Tuple Fields§
§0: ErasedSegment§1: ObjectReferenceKindImplementations§
source§impl ObjectReferenceSegment
impl ObjectReferenceSegment
pub fn is_qualified(&self) -> bool
pub fn qualification(&self) -> &'static str
pub fn extract_possible_references( &self, level: ObjectReferenceLevel, dialect: DialectKind, ) -> Vec<ObjectReferencePart>
pub fn extract_possible_multipart_references( &self, levels: &[ObjectReferenceLevel], ) -> Vec<Vec<ObjectReferencePart>>
pub fn extract_possible_multipart_references_inner( &self, levels: &[ObjectReferenceLevel], dialect_kind: DialectKind, ) -> Vec<Vec<ObjectReferencePart>>
pub fn iter_raw_references(&self) -> Vec<ObjectReferencePart>
Trait Implementations§
source§impl Clone for ObjectReferenceSegment
impl Clone for ObjectReferenceSegment
source§fn clone(&self) -> ObjectReferenceSegment
fn clone(&self) -> ObjectReferenceSegment
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 moreAuto Trait Implementations§
impl Freeze for ObjectReferenceSegment
impl !RefUnwindSafe for ObjectReferenceSegment
impl !Send for ObjectReferenceSegment
impl !Sync for ObjectReferenceSegment
impl Unpin for ObjectReferenceSegment
impl !UnwindSafe for ObjectReferenceSegment
Blanket Implementations§
source§impl<T> AsAnyMut for Twhere
T: Any,
impl<T> AsAnyMut for Twhere
T: Any,
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more