[−][src]Struct ttk91::symbol_table::SymbolInfo
The entry in SymbolTable which contains the information relating to a single symbol.
Provides a typed map API that uses types implementing Property as the keys. Each of these key types has an associated Value type, an so the keys can have values of differing types.
Implementations
impl SymbolInfo
[src]
pub fn set<F: Property + 'static>(
&mut self,
value: F::Value
) -> Option<F::Value>
[src]
&mut self,
value: F::Value
) -> Option<F::Value>
Sets the value of the field specified by the type F
. If the field is already specified,
replaces the value and returns the original.
pub fn get<F: Property + 'static>(&self) -> Cow<F::Value>
[src]
Gets the value of the field specified by the type F
. If the field has an value, returns
an reference to it. Otherwise returns the Default of that value.
pub fn get_mut<F>(&mut self) -> &mut F::Value where
F: Property + 'static,
[src]
F: Property + 'static,
Gets a mutable reference to the field specified by the type F
. If the field is not
present for this symbol, inserts the Default value of the field into the SymbolTable.
Trait Implementations
impl Clone for SymbolInfo
[src]
fn clone(&self) -> SymbolInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SymbolInfo
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SymbolInfo
impl !Send for SymbolInfo
impl !Sync for SymbolInfo
impl Unpin for SymbolInfo
impl !UnwindSafe for SymbolInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,