MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / with_context

Method with_context

splashsurf_lib/src/io/bgeo_format.rs:780–782  ·  view source on GitHub ↗

Appends a context message to the backtrace and return self

(self, input: I, ctx: S)

Source from the content-addressed store, hash-verified

778
779 /// Appends a context message to the backtrace and return self
780 pub fn with_context<S: Into<Cow<'static, str>>>(self, input: I, ctx: S) -> Self {
781 self.with_append(input, BgeoParserErrorKind::Context(ctx.into()))
782 }
783
784 /// Wraps the error into a (recoverable) nom::Err::Error
785 pub fn into_nom_error(self) -> nom::Err<Self> {

Callers 13

get_triangleFunction · 0.80
load_fileMethod · 0.80
load_point_attributesMethod · 0.80
test_load_num_particlesFunction · 0.80
test_ply_read_cubeFunction · 0.80
add_contextMethod · 0.80
reconstruct_subcommandFunction · 0.80
try_newMethod · 0.80
convert_particlesFunction · 0.80

Calls 1

with_appendMethod · 0.80

Tested by 3

test_load_num_particlesFunction · 0.64
test_ply_read_cubeFunction · 0.64