MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / set_kind

Method set_kind

atomic-core/src/change/ops.rs:193–203  ·  view source on GitHub ↗

Creates a semantic inode-kind attribute operation.

(trunk_id: TrunkId, path: String, kind: crate::change::InodeKind)

Source from the content-addressed store, hash-verified

191
192 /// Creates a semantic inode-kind attribute operation.
193 pub fn set_kind(trunk_id: TrunkId, path: String, kind: crate::change::InodeKind) -> Self {
194 Self {
195 trunk_id,
196 path,
197 trunk_op: Some(TrunkOp::SetKind {
198 trunk: trunk_id,
199 kind,
200 }),
201 line_ops: Vec::new(),
202 }
203 }
204
205 /// Creates an edit operation (modifying an existing file).
206 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected