pub struct NodeMut<'d> {
pub node_id: NodeId,
/* private fields */
}Fields§
§node_id: NodeIdImplementations§
Source§impl<'d> NodeMut<'d>
impl<'d> NodeMut<'d>
pub fn new(document: &'d mut EureDocument, node_id: NodeId) -> Self
pub fn add_map_child( self, object_key: ObjectKey, ) -> Result<NodeMut<'d>, InsertErrorKind>
pub fn add_extension( self, identifier: Identifier, ) -> Result<NodeMut<'d>, InsertErrorKind>
pub fn add_tuple_element( self, index: u8, ) -> Result<NodeMut<'d>, InsertErrorKind>
pub fn add_array_element( self, index: Option<usize>, ) -> Result<NodeMut<'d>, InsertErrorKind>
pub fn add_child_by_segment( self, segment: PathSegment, ) -> Result<NodeMut<'d>, InsertErrorKind>
pub fn get_extension(self, ident: &Identifier) -> Option<NodeMut<'d>>
pub fn as_map(self) -> Option<&'d NodeMap>
pub fn as_array(self) -> Option<&'d NodeArray>
pub fn as_tuple(self) -> Option<&'d NodeTuple>
pub fn require_map(self) -> Result<&'d mut NodeMap, InsertErrorKind>
pub fn require_tuple(self) -> Result<&'d mut NodeTuple, InsertErrorKind>
pub fn require_array(self) -> Result<&'d mut NodeArray, InsertErrorKind>
Trait Implementations§
Auto Trait Implementations§
impl<'d> Freeze for NodeMut<'d>
impl<'d> RefUnwindSafe for NodeMut<'d>
impl<'d> Send for NodeMut<'d>
impl<'d> Sync for NodeMut<'d>
impl<'d> Unpin for NodeMut<'d>
impl<'d> !UnwindSafe for NodeMut<'d>
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