pub struct TypeParamNode<'a> { /* private fields */ }Implementations§
Source§impl<'a> TypeParamNode<'a>
impl<'a> TypeParamNode<'a>
Sourcepub fn location(&self) -> RBSLocationRange
pub fn location(&self) -> RBSLocationRange
Returns the location of this node.
Sourcepub fn name_location(&self) -> RBSLocationRange
pub fn name_location(&self) -> RBSLocationRange
Returns the name sub-location of this node.
Sourcepub fn variance_location(&self) -> Option<RBSLocationRange>
pub fn variance_location(&self) -> Option<RBSLocationRange>
Returns the variance sub-location of this node if present.
Sourcepub fn unchecked_location(&self) -> Option<RBSLocationRange>
pub fn unchecked_location(&self) -> Option<RBSLocationRange>
Returns the unchecked sub-location of this node if present.
Sourcepub fn upper_bound_location(&self) -> Option<RBSLocationRange>
pub fn upper_bound_location(&self) -> Option<RBSLocationRange>
Returns the upper_bound sub-location of this node if present.
Sourcepub fn lower_bound_location(&self) -> Option<RBSLocationRange>
pub fn lower_bound_location(&self) -> Option<RBSLocationRange>
Returns the lower_bound sub-location of this node if present.
Sourcepub fn default_location(&self) -> Option<RBSLocationRange>
pub fn default_location(&self) -> Option<RBSLocationRange>
Returns the default sub-location of this node if present.
pub fn name(&self) -> SymbolNode<'a>
pub fn variance(&self) -> TypeParamVariance
pub fn upper_bound(&self) -> Option<Node<'a>>
pub fn lower_bound(&self) -> Option<Node<'a>>
pub fn default_type(&self) -> Option<Node<'a>>
pub fn unchecked(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TypeParamNode<'a>
impl<'a> RefUnwindSafe for TypeParamNode<'a>
impl<'a> !Send for TypeParamNode<'a>
impl<'a> !Sync for TypeParamNode<'a>
impl<'a> Unpin for TypeParamNode<'a>
impl<'a> UnsafeUnpin for TypeParamNode<'a>
impl<'a> !UnwindSafe for TypeParamNode<'a>
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