pub struct DesignReflection { /* private fields */ }Implementations§
Source§impl DesignReflection
impl DesignReflection
pub fn new(scopes: Vec<ReflectionScope>, signals: Vec<ReflectionSignal>) -> Self
pub fn scopes(&self) -> &[ReflectionScope]
pub fn signals(&self) -> &[ReflectionSignal]
pub fn scope(&self, id: ReflectionScopeId) -> Option<&ReflectionScope>
pub fn signal(&self, id: ReflectionSignalId) -> Option<&ReflectionSignal>
pub fn scope_by_name( &self, full_name: &str, ) -> Option<(ReflectionScopeId, &ReflectionScope)>
pub fn signal_by_name( &self, full_name: &str, ) -> Option<(ReflectionSignalId, &ReflectionSignal)>
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for DesignReflection
impl Clone for DesignReflection
Source§fn clone(&self) -> DesignReflection
fn clone(&self) -> DesignReflection
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 DesignReflection
impl Debug for DesignReflection
Source§impl Default for DesignReflection
impl Default for DesignReflection
Source§fn default() -> DesignReflection
fn default() -> DesignReflection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DesignReflection
impl<'de> Deserialize<'de> for DesignReflection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DesignReflection
Source§impl PartialEq for DesignReflection
impl PartialEq for DesignReflection
Source§impl Serialize for DesignReflection
impl Serialize for DesignReflection
impl StructuralPartialEq for DesignReflection
Auto Trait Implementations§
impl Freeze for DesignReflection
impl RefUnwindSafe for DesignReflection
impl Send for DesignReflection
impl Sync for DesignReflection
impl Unpin for DesignReflection
impl UnsafeUnpin for DesignReflection
impl UnwindSafe for DesignReflection
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