Struct sysfuss::BasicEntityPath
source · pub struct BasicEntityPath { /* private fields */ }Expand description
Generic entity path with basic functionality
Implementations§
source§impl BasicEntityPath
impl BasicEntityPath
sourcepub fn filter_capabilities<A: SysAttribute>(
&self,
attributes: impl Iterator<Item = A>
) -> impl Iterator<Item = A>
pub fn filter_capabilities<A: SysAttribute>( &self, attributes: impl Iterator<Item = A> ) -> impl Iterator<Item = A>
Filter out attributes that do not exist on this entity
Trait Implementations§
source§impl AsRef<Path> for BasicEntityPath
impl AsRef<Path> for BasicEntityPath
source§impl SysEntity for BasicEntityPath
impl SysEntity for BasicEntityPath
source§impl SysEntityAttributes<String> for BasicEntityPath
impl SysEntityAttributes<String> for BasicEntityPath
Auto Trait Implementations§
impl RefUnwindSafe for BasicEntityPath
impl Send for BasicEntityPath
impl Sync for BasicEntityPath
impl Unpin for BasicEntityPath
impl UnwindSafe for BasicEntityPath
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<A, X> SysEntityAttributesExt<A> for Xwhere
A: SysAttribute + Eq,
X: SysEntityAttributes<A>,
impl<A, X> SysEntityAttributesExt<A> for Xwhere A: SysAttribute + Eq, X: SysEntityAttributes<A>,
source§impl<X> SysEntityRawExt for Xwhere
X: SysEntity,
impl<X> SysEntityRawExt for Xwhere X: SysEntity,
source§fn attribute<A, T, E>(&self, attr: A) -> Result<T, EitherErr2<Error, E>>where
A: SysAttribute + Eq,
T: FromStr<Err = E>,
fn attribute<A, T, E>(&self, attr: A) -> Result<T, EitherErr2<Error, E>>where A: SysAttribute + Eq, T: FromStr<Err = E>,
Get an attribute on the entity
source§fn attribute_str<A>(&self, attr: A) -> Result<String, Error>where
A: AsRef<Path>,
fn attribute_str<A>(&self, attr: A) -> Result<String, Error>where A: AsRef<Path>,
Get an attribute by filename in the entity’s directory
source§fn exists_str<A>(&self, attr: A) -> boolwhere
A: AsRef<Path>,
fn exists_str<A>(&self, attr: A) -> boolwhere A: AsRef<Path>,
Returns true when the entity has the attribute
source§fn exists<A>(&self, attr: A) -> boolwhere
A: SysAttribute,
fn exists<A>(&self, attr: A) -> boolwhere A: SysAttribute,
Returns true when the entity has the attribute