Struct yrs::types::BranchRef [−][src]
pub struct BranchRef(_);
Expand description
Implementations
Returns an immutable ref wrapper to an underlying Branch. This method will panic, if current branch was already mutably borrowed.
Returns a mutable ref wrapper to an underlying Branch. This method will panic, if current branch was already borrowed (either mutably or immutably) somewhere else.
Returns a result, which may either be a mutable ref wrapper to an underlying Branch, or an error in case when this branch was already borrowed (either mutably or immutably) somewhere else.
Converts current branch data into a Value. It uses a type ref information to resolve, which value variant is a correct one for this branch. Since branch represent only complex types Value::Any will never be returned from this method.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BranchRef
impl !UnwindSafe for BranchRef
Blanket Implementations
Mutably borrows from an owned value. Read more