pub struct AnyHasVisibility { /* private fields */ }Implementations§
Source§impl AnyHasVisibility
impl AnyHasVisibility
pub fn new<T>(node: T) -> AnyHasVisibilitywhere
T: HasVisibility,
Trait Implementations§
Source§impl AstNode for AnyHasVisibility
impl AstNode for AnyHasVisibility
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode<RustLanguage>) -> Option<AnyHasVisibility>
fn syntax(&self) -> &SyntaxNode<RustLanguage>
Source§fn kind() -> SyntaxKindwhere
Self: Sized,
fn kind() -> SyntaxKindwhere
Self: Sized,
This panics if the
SyntaxKind is not statically known.fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for AnyHasVisibility
impl Clone for AnyHasVisibility
Source§fn clone(&self) -> AnyHasVisibility
fn clone(&self) -> AnyHasVisibility
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnyHasVisibility
impl Debug for AnyHasVisibility
impl Eq for AnyHasVisibility
Source§impl From<Const> for AnyHasVisibility
impl From<Const> for AnyHasVisibility
Source§fn from(node: Const) -> AnyHasVisibility
fn from(node: Const) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Enum> for AnyHasVisibility
impl From<Enum> for AnyHasVisibility
Source§fn from(node: Enum) -> AnyHasVisibility
fn from(node: Enum) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<ExternCrate> for AnyHasVisibility
impl From<ExternCrate> for AnyHasVisibility
Source§fn from(node: ExternCrate) -> AnyHasVisibility
fn from(node: ExternCrate) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Fn> for AnyHasVisibility
impl From<Fn> for AnyHasVisibility
Source§fn from(node: Fn) -> AnyHasVisibility
fn from(node: Fn) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Impl> for AnyHasVisibility
impl From<Impl> for AnyHasVisibility
Source§fn from(node: Impl) -> AnyHasVisibility
fn from(node: Impl) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<MacroDef> for AnyHasVisibility
impl From<MacroDef> for AnyHasVisibility
Source§fn from(node: MacroDef) -> AnyHasVisibility
fn from(node: MacroDef) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<MacroRules> for AnyHasVisibility
impl From<MacroRules> for AnyHasVisibility
Source§fn from(node: MacroRules) -> AnyHasVisibility
fn from(node: MacroRules) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Module> for AnyHasVisibility
impl From<Module> for AnyHasVisibility
Source§fn from(node: Module) -> AnyHasVisibility
fn from(node: Module) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<RecordField> for AnyHasVisibility
impl From<RecordField> for AnyHasVisibility
Source§fn from(node: RecordField) -> AnyHasVisibility
fn from(node: RecordField) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Static> for AnyHasVisibility
impl From<Static> for AnyHasVisibility
Source§fn from(node: Static) -> AnyHasVisibility
fn from(node: Static) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Struct> for AnyHasVisibility
impl From<Struct> for AnyHasVisibility
Source§fn from(node: Struct) -> AnyHasVisibility
fn from(node: Struct) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Trait> for AnyHasVisibility
impl From<Trait> for AnyHasVisibility
Source§fn from(node: Trait) -> AnyHasVisibility
fn from(node: Trait) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<TupleField> for AnyHasVisibility
impl From<TupleField> for AnyHasVisibility
Source§fn from(node: TupleField) -> AnyHasVisibility
fn from(node: TupleField) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<TypeAlias> for AnyHasVisibility
impl From<TypeAlias> for AnyHasVisibility
Source§fn from(node: TypeAlias) -> AnyHasVisibility
fn from(node: TypeAlias) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Union> for AnyHasVisibility
impl From<Union> for AnyHasVisibility
Source§fn from(node: Union) -> AnyHasVisibility
fn from(node: Union) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Use> for AnyHasVisibility
impl From<Use> for AnyHasVisibility
Source§fn from(node: Use) -> AnyHasVisibility
fn from(node: Use) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl From<Variant> for AnyHasVisibility
impl From<Variant> for AnyHasVisibility
Source§fn from(node: Variant) -> AnyHasVisibility
fn from(node: Variant) -> AnyHasVisibility
Converts to this type from the input type.
Source§impl HasVisibility for AnyHasVisibility
impl HasVisibility for AnyHasVisibility
fn visibility(&self) -> Option<Visibility>
Source§impl Hash for AnyHasVisibility
impl Hash for AnyHasVisibility
Source§impl PartialEq for AnyHasVisibility
impl PartialEq for AnyHasVisibility
Source§fn eq(&self, other: &AnyHasVisibility) -> bool
fn eq(&self, other: &AnyHasVisibility) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl !RefUnwindSafe for AnyHasVisibility
impl !Send for AnyHasVisibility
impl !Sync for AnyHasVisibility
impl !UnwindSafe for AnyHasVisibility
impl Freeze for AnyHasVisibility
impl Unpin for AnyHasVisibility
impl UnsafeUnpin for AnyHasVisibility
Blanket Implementations§
Source§impl<N> AstNodeEdit for N
impl<N> AstNodeEdit for N
fn indent_level(&self) -> IndentLevel
fn indent(&self, level: IndentLevel) -> Self
fn indent_with_mapping(&self, level: IndentLevel, make: &SyntaxFactory) -> Self
fn dedent(&self, level: IndentLevel) -> Self
fn reset_indent(&self) -> Self
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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