Struct noak::reader::attributes::annotations::TypeAnnotation
source · pub struct TypeAnnotation<'input> { /* private fields */ }
Implementations§
source§impl<'input> TypeAnnotation<'input>
impl<'input> TypeAnnotation<'input>
pub fn target_type(&self) -> TargetType
pub fn target_info(&self) -> &TargetInfo<'input>
pub fn target_path(&self) -> &DecodeMany<'input, TypePathSegment<'input>, u8>
pub fn type_(&self) -> Index<Utf8<'input>>
pub fn pairs(&self) -> DecodeMany<'input, ElementValuePair<'input>, u16>
Trait Implementations§
source§impl<'input> Clone for TypeAnnotation<'input>
impl<'input> Clone for TypeAnnotation<'input>
source§fn clone(&self) -> TypeAnnotation<'input>
fn clone(&self) -> TypeAnnotation<'input>
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<'input> Freeze for TypeAnnotation<'input>
impl<'input> RefUnwindSafe for TypeAnnotation<'input>
impl<'input> Send for TypeAnnotation<'input>
impl<'input> Sync for TypeAnnotation<'input>
impl<'input> Unpin for TypeAnnotation<'input>
impl<'input> UnwindSafe for TypeAnnotation<'input>
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