pub struct Import {
pub element: String,
pub is_directive: bool,
pub alias: Option<String>,
}Fields§
§element: StringThe name of the element that is being imported.
Note that this will never start with ‘@’: whether or not this is the name of a directive is
entirely reflected by the value of is_directive.
is_directive: boolWhether the imported element is a directive (if it is not, then it is an imported type).
alias: Option<String>The optional alias under which the element is imported.
Implementations§
Source§impl Import
impl Import
pub fn from_hir_value(value: &Value) -> Result<Import, LinkError>
pub fn imported_name(&self) -> &String
pub fn imported_display_name(&self) -> String
Trait Implementations§
impl Eq for Import
impl StructuralPartialEq for Import
Auto Trait Implementations§
impl Freeze for Import
impl RefUnwindSafe for Import
impl Send for Import
impl Sync for Import
impl Unpin for Import
impl UnwindSafe for Import
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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 Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.