pub struct DirectBinding { /* private fields */ }Expand description
One physical dependency path a direct descriptor projection is rooted at.
Every segment is an ordinary Rust item name, so a renamed dependency and a facade re-export are both stated through the same shape: renamed_harness and renamed_facade::harness differ only in how many segments they carry.
Implementations§
Source§impl DirectBinding
impl DirectBinding
Sourcepub fn declared(segments: Vec<String>) -> Result<Self, DeclarationError>
pub fn declared(segments: Vec<String>) -> Result<Self, DeclarationError>
One direct projection’s physical dependency path, from its ordered item segments.
§Errors
Returns DeclarationError::Absent where no segment was supplied, DeclarationError::NotAnIdentifier where a segment cannot name a rendered item, and DeclarationError::Unbounded where the path outgrows PATH_SEGMENT_LIMIT.
Trait Implementations§
Source§impl Clone for DirectBinding
impl Clone for DirectBinding
Source§fn clone(&self) -> DirectBinding
fn clone(&self) -> DirectBinding
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 DirectBinding
impl Debug for DirectBinding
impl Eq for DirectBinding
Source§impl Hash for DirectBinding
impl Hash for DirectBinding
Source§impl PartialEq for DirectBinding
impl PartialEq for DirectBinding
impl StructuralPartialEq for DirectBinding
Auto Trait Implementations§
impl Freeze for DirectBinding
impl RefUnwindSafe for DirectBinding
impl Send for DirectBinding
impl Sync for DirectBinding
impl Unpin for DirectBinding
impl UnsafeUnpin for DirectBinding
impl UnwindSafe for DirectBinding
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